Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ RUN pnpm run -r build
RUN pnpm deploy --filter=api --prod /prod/api && \
cp -r "$(pnpm --filter=api list --depth=-1 --parseable)/dist" /prod/api/dist
RUN pnpm deploy --filter=web --prod /prod/web && \
cp -r "$(pnpm --filter=web list --depth=-1 --parseable)/dist" /prod/web
cp -r "$(pnpm --filter=web list --depth=-1 --parseable)/dist" /prod/web && \
cp -r "$(pnpm --filter=web list --depth=-1 --parseable)/nginx.conf" /prod/web/nginx.conf

FROM base AS api
COPY --from=build /prod/api /prod/api
Expand All @@ -25,7 +26,7 @@ RUN ls -la
EXPOSE 5000
CMD [ "pnpm", "start:prod" ]

FROM base AS web
FROM nginx:alpine AS web
COPY --from=build /prod/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
9 changes: 9 additions & 0 deletions services/web/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
server {
listen 80;

location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri /index.html;
}
}