Skip to content

Commit

Permalink
fix: backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsbergPhilip committed Nov 14, 2024
1 parent 0650d59 commit 31194a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/dockerfiles/backend
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ EXPOSE $PORT
CMD ["yarn", "start:dev"]

FROM develop AS build
RUN yarn workspaces focus --all --production
RUN npm run build
RUN SKIP_POSTINSTALL=true yarn workspaces focus --all --production

FROM node:20-alpine AS prod
ENV PORT=3000
Expand Down
3 changes: 3 additions & 0 deletions .docker/resources/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ http {
listen 443 ssl;
server_name diamonds.etimo.se;

root /usr/share/nginx/html;
index index.html;

location /static/ {
expires max;
add_header Cache-Control "public, max-age=31536000, immutable";
Expand Down

0 comments on commit 31194a8

Please sign in to comment.