Skip to content

Commit

Permalink
Restored default Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fjudith committed Sep 15, 2023
1 parent dd08d09 commit e0ba2a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@
#
# Once the commands have been run, you can build the image using `yarn build-image`

FROM node:18-bookworm-slim
FROM node:16-bullseye-slim

# Install isolate-vm dependencies, these are needed by the @backstage/plugin-scaffolder-backend.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update -y \
&& apt-get install -y --no-install-recommends python3 g++ build-essential \
&& yarn config set python /usr/bin/python3
apt-get update && \
apt-get install -y --no-install-recommends python3 g++ build-essential && \
yarn config set python /usr/bin/python3

# Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image,
# in which case you should also move better-sqlite3 to "devDependencies" in package.json.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends libsqlite3-dev
apt-get install -y --no-install-recommends libsqlite3-dev

# From here on we use the least-privileged `node` user to run the backend.
USER node
Expand Down

0 comments on commit e0ba2a6

Please sign in to comment.