diff options
author | thursday <xthursdayx@mailbox.org> | 2021-07-21 01:32:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 01:32:18 -0400 |
commit | 45c1b800ed88cc4ddfddd828932385bbb4edc319 (patch) | |
tree | 3f84c92881a35b7238c118c2bb0d175bc3f39f67 /Dockerfile | |
parent | Update .dockerignore (diff) | |
download | ferdium-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-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,9 +13,9 @@ FROM node:lts-alpine | |||
13 | WORKDIR /app | 13 | WORKDIR /app |
14 | LABEL maintainer="xthursdayx" | 14 | LABEL maintainer="xthursdayx" |
15 | 15 | ||
16 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" | 16 | ENV HOST=0.0.0.0 PORT=3333 DATA_DIR="/data" |
17 | 17 | ||
18 | RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl"] | 18 | RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl", "su-exec"] |
19 | 19 | ||
20 | COPY --from=build /server-build /app | 20 | COPY --from=build /server-build /app |
21 | RUN ["npm", "i", "-g", "@adonisjs/cli"] | 21 | RUN ["npm", "i", "-g", "@adonisjs/cli"] |