Update Docker

This commit is contained in:
ahmadafriadi 2025-06-30 11:58:37 +07:00
parent ab333e2e91
commit 44b3fab0ea
2 changed files with 20 additions and 0 deletions

12
Dockerfile Normal file
View 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
View File

@ -0,0 +1,8 @@
version: "3.8"
services:
fe-minierp:
build: .
container_name: fe-minierp-container
ports:
- "8090:80"