first commit
This commit is contained in:
commit
e8ec46d19f
60 changed files with 13652 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM node:20-slim as build-stage
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM alpine as production-stage
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add miniserve --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||
|
||||
COPY --from=build-stage /app/dist/spa .
|
||||
COPY --from=build-stage /app/entrypoint.sh ./entrypoint.sh
|
||||
|
||||
RUN chmod u+x ./entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue