This commit is contained in:
hippoz 2023-08-08 22:37:23 +03:00
parent d43d7e6455
commit 09a95ca28e
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 2 additions and 1 deletions

View file

@ -27,5 +27,6 @@ RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env
USER node
USER root
RUN mkdir -p /var/lib/waffle/uploads && chown -R node /var/lib/waffle/uploads
VOLUME /var/lib/waffle
USER node
CMD [ "/bin/sh", "-c", "node index.js" ]

View file

@ -11,7 +11,7 @@ services:
waffle:
build: .
volumes:
- ./tmp/uploads:/var/lib/waffle
- ./tmp/waffle:/var/lib/waffle
ports:
- "5002:3000"
environment: