feat(ci): add docker, docker compose
This commit is contained in:
16
client/Dockerfile
Normal file
16
client/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY client/package*.json ./client/
|
||||
WORKDIR /app/client
|
||||
RUN npm install
|
||||
COPY client/ .
|
||||
COPY shared /app/shared
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.25-alpine
|
||||
COPY client/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/client/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user