Improve local storage + add PRESENTATION_STORAGE_DIR variable

#55
This commit is contained in:
Alex
2023-09-23 12:02:39 +02:00
parent 8bdf9e6e77
commit 6aa70fad58
11 changed files with 39 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ RUN apt-get update -y && apt-get install -y curl build-essential git \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
ENV NODE_VERSION 16.20.0
ENV PRESENTATION_STORAGE_DIR /app/uploads
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash \
@@ -97,6 +98,7 @@ ENV HOME "/home/nobody"
RUN mkdir /home/nobody && chown nobody /home/nobody
WORKDIR "/app"
RUN mkdir /app/uploads
RUN chown nobody /app
# Only copy the final release from the build stage