feat: add new folder
This commit is contained in:
20
gig-poc/apps/web/Dockerfile
Normal file
20
gig-poc/apps/web/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM docker.m.daocloud.io/library/node:22-alpine AS builder
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY apps/web/package.json /app/package.json
|
||||
COPY apps/web/tsconfig.json /app/tsconfig.json
|
||||
COPY apps/web/tsconfig.app.json /app/tsconfig.app.json
|
||||
COPY apps/web/vite.config.ts /app/vite.config.ts
|
||||
COPY apps/web/index.html /app/index.html
|
||||
COPY apps/web/src /app/src
|
||||
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM docker.m.daocloud.io/library/nginx:1.27-alpine
|
||||
|
||||
COPY infrastructure/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user