aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 54d2039..ea36dd6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,6 +9,7 @@ COPY . /server-build
9ENV CI=true 9ENV CI=true
10RUN PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm'); npm i -g pnpm@$PNPM_VERSION 10RUN PNPM_VERSION=$(node -p 'require("./package.json").engines.pnpm'); npm i -g pnpm@$PNPM_VERSION
11RUN pnpm install --config.build-from-source=sqlite --config.sqlite=/usr/local 11RUN pnpm install --config.build-from-source=sqlite --config.sqlite=/usr/local
12RUN pnpm build
12 13
13# ---- RUNTIME IMAGE ---------------------------------------------------------- 14# ---- RUNTIME IMAGE ----------------------------------------------------------
14FROM node:18.18.0-alpine 15FROM 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?
20ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" 21ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data"
21 22
22RUN apk add --no-cache sqlite-libs curl su-exec python3 make g++ py3-pip git py3-pip 23RUN 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
25COPY --from=build /server-build /app 28COPY --from=build /server-build /app