Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 2m23s
14 lines
247 B
Docker
14 lines
247 B
Docker
# Build stage
|
|
FROM node:18-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Run stage
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|