From c923adf818a3534aca73a0755fa8351db1583d84 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Tue, 19 Apr 2022 10:13:32 -0600 Subject: [PATCH] Update Dockerfile - Removed Alpine (further testing required, Alpine did not work in production for me) - Fixed whitespace issues --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index aba161c..a1479a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,16 +4,17 @@ # - Zusier (https://github.com/Zusier) # Node 16 image -FROM node:16.14.0-alpine3.15 +FROM node:16.14.0 # Set working directory WORKDIR /opt/ass/ -# create rootless user with uid/gid as 1001 -RUN addgroup -g 1001 ass && adduser --disabled-password --gecos "" --home "/opt/ass" --no-create-home --uid 1001 --ingroup ass ass +# Create rootless user with uid/gid as 1001 +RUN addgroup -g 1001 ass && \ + adduser --disabled-password --gecos "" --home "/opt/ass" --no-create-home --uid 1001 --ingroup ass ass # Set permissions for rootless user -RUN chown -R ass /opt/ass/&& chmod -R 774 /opt/ass/ +RUN chown -R ass /opt/ass/ && chmod -R 774 /opt/ass/ # Ensure these directories & files exist for compose volumes RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ @@ -34,4 +35,4 @@ RUN npm i -g npm@8 typescript && \ USER ass # Start ass -CMD npm start \ No newline at end of file +CMD npm start