Update Docker
This commit is contained in:
parent
ab333e2e91
commit
44b3fab0ea
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Build stage
|
||||||
|
FROM node:18 AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN npm install --legacy-peer-deps
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Serve stage
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
fe-minierp:
|
||||||
|
build: .
|
||||||
|
container_name: fe-minierp-container
|
||||||
|
ports:
|
||||||
|
- "8090:80"
|
||||||
Loading…
Reference in New Issue
Block a user