Skip to content

Commit

Permalink
webapp: dockerised with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TuritoYuenan committed Jan 20, 2025
1 parent 99649c0 commit 3d71c5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
14 changes: 14 additions & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# build stage
FROM node:lts-alpine AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# 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"]

0 comments on commit 3d71c5d

Please sign in to comment.