Commit 9905f4a1 authored by Khalid Ali's avatar Khalid Ali

Feature/3-Add-Docker

parent 23e9b644
......@@ -25,4 +25,4 @@ e2e test:
script:
- npm install --progress=false
- npm run pretest
- npm run test:e2e
\ No newline at end of file
- npm run test:e2e
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment