aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLibravatar thursday <xthursdayx@mailbox.org>2021-07-21 01:32:18 -0400
committerLibravatar GitHub <noreply@github.com>2021-07-21 01:32:18 -0400
commit45c1b800ed88cc4ddfddd828932385bbb4edc319 (patch)
tree3f84c92881a35b7238c118c2bb0d175bc3f39f67 /Dockerfile
parentUpdate .dockerignore (diff)
downloadferdium-server-45c1b800ed88cc4ddfddd828932385bbb4edc319.tar.gz
ferdium-server-45c1b800ed88cc4ddfddd828932385bbb4edc319.tar.zst
ferdium-server-45c1b800ed88cc4ddfddd828932385bbb4edc319.zip
Update Dockerfile
Added su-exec to work towards running ferdi-server as a non-root user.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5103ad0..9c2b1a8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,9 +13,9 @@ FROM node:lts-alpine
13WORKDIR /app 13WORKDIR /app
14LABEL maintainer="xthursdayx" 14LABEL maintainer="xthursdayx"
15 15
16ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" 16ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data"
17 17
18RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl"] 18RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl", "su-exec"]
19 19
20COPY --from=build /server-build /app 20COPY --from=build /server-build /app
21RUN ["npm", "i", "-g", "@adonisjs/cli"] 21RUN ["npm", "i", "-g", "@adonisjs/cli"]