Skip to content

Commit

Permalink
webapp: (temporary) working containerised webapp (may break github pa…
Browse files Browse the repository at this point in the history
…ges)
  • Loading branch information
TuritoYuenan committed Feb 19, 2025
1 parent 705ed99 commit cb9ef23
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 104 deletions.
14 changes: 9 additions & 5 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ RUN npm install
COPY . .
RUN npm run build

EXPOSE 4173

CMD [ "npm", "run", "preview" ]

# production stage
FROM busybox:1.30 AS runner
WORKDIR /app
COPY --from=build-stage /app/dist .
EXPOSE 8080
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"]
# FROM busybox:1.30 AS runner
# WORKDIR /app
# COPY --from=build-stage /app/dist .
# EXPOSE 8080
# CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"]
188 changes: 94 additions & 94 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb9ef23

Please sign in to comment.