This commit is contained in:
hippoz 2023-08-08 23:30:27 +03:00
parent 680ceee880
commit d4d34d8eb0
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 2 additions and 2 deletions

View file

@ -24,6 +24,4 @@ WORKDIR /app
COPY --from=strip-dev-deps /app ./
COPY --from=frontend-compiler /app/frontend/public ./frontend/public
RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env
RUN mkdir -p /var/lib/waffle/uploads && chown -R node /var/lib/waffle/uploads
USER node
CMD [ "/bin/sh", "-c", "node index.js" ]

View file

@ -10,6 +10,8 @@ services:
- POSTGRES_PASSWORD=supersecretpassword11
waffle:
build: .
volumes:
- ./tmp/waffle:/var/lib/waffle
ports:
- "5002:3000"
environment: