a
This commit is contained in:
parent
680ceee880
commit
d4d34d8eb0
2 changed files with 2 additions and 2 deletions
|
@ -24,6 +24,4 @@ WORKDIR /app
|
||||||
COPY --from=strip-dev-deps /app ./
|
COPY --from=strip-dev-deps /app ./
|
||||||
COPY --from=frontend-compiler /app/frontend/public ./frontend/public
|
COPY --from=frontend-compiler /app/frontend/public ./frontend/public
|
||||||
RUN echo "JWT_SECRET=$(openssl rand -base64 256 | tr -d '\n')" > .env
|
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" ]
|
CMD [ "/bin/sh", "-c", "node index.js" ]
|
||||||
|
|
|
@ -10,6 +10,8 @@ services:
|
||||||
- POSTGRES_PASSWORD=supersecretpassword11
|
- POSTGRES_PASSWORD=supersecretpassword11
|
||||||
waffle:
|
waffle:
|
||||||
build: .
|
build: .
|
||||||
|
volumes:
|
||||||
|
- ./tmp/waffle:/var/lib/waffle
|
||||||
ports:
|
ports:
|
||||||
- "5002:3000"
|
- "5002:3000"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue