diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e53b29 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:16-alpine AS build + +WORKDIR /app +COPY package-lock.json package.json ./ +RUN npm ci --only-prod +COPY vite.config.ts tsconfig.json index.html .env.production ./ +COPY src ./src +RUN npm run build + +FROM nginx:alpine AS serve + +RUN apk add --no-cache bash +COPY --from=build /app/dist /usr/share/nginx/html +COPY prod_bootstrap.sh / +CMD ["bash", "/prod_bootstrap.sh", "/usr/share/nginx/html"] |
