apkt-eis/Dockerfile
Dede Fuji Abdul bfab727e59 Update Dockerfile and Kubernetes manifests
This commit updates the Dockerfile to expose port 32166 instead of 15002. It also adds a new deployment.yaml file, an ingress.yaml file, and a service.yaml file for Kubernetes deployment. The deployment.yml file has been deleted.
2024-01-15 12:07:30 +07:00

14 lines
343 B
Docker

FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# tahap produksi
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf
EXPOSE 32166
CMD ["nginx", "-g", "daemon off;"]