diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -9,6 +9,7 @@ COPY . /server-build | |||
9 | ENV CI=true | 9 | ENV CI=true |
10 | RUN PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm'); npm i -g pnpm@$PNPM_VERSION | 10 | RUN PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm'); npm i -g pnpm@$PNPM_VERSION |
11 | RUN pnpm install --config.build-from-source=sqlite --config.sqlite=/usr/local | 11 | RUN pnpm install --config.build-from-source=sqlite --config.sqlite=/usr/local |
12 | RUN pnpm build | ||
12 | 13 | ||
13 | # ---- RUNTIME IMAGE ---------------------------------------------------------- | 14 | # ---- RUNTIME IMAGE ---------------------------------------------------------- |
14 | FROM node:18.18.0-alpine | 15 | FROM node:18.18.0-alpine |
@@ -19,7 +20,9 @@ LABEL maintainer="ferdium" | |||
19 | # TODO: Shouldn't we set 'NODE_ENV=production' when running in production mode? | 20 | # TODO: Shouldn't we set 'NODE_ENV=production' when running in production mode? |
20 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" | 21 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" |
21 | 22 | ||
22 | RUN apk add --no-cache sqlite-libs curl su-exec python3 make g++ py3-pip git py3-pip | 23 | RUN apk add --no-cache sqlite-libs curl su-exec python3 make g++ py3-pip git py3-pip sqlite |
24 | # The next command is needed for sqlite3 install command executed by node-gyp | ||
25 | # RUN ln -s /usr/bin/python3 /usr/bin/python | ||
23 | 26 | ||
24 | 27 | ||
25 | COPY --from=build /server-build /app | 28 | COPY --from=build /server-build /app |