aswi2020anonymous-gitlab/fe/fulltextsearch/Dockerfile @ abf0c77d
1 |
### STAGE 1: BUILD ###
|
---|---|
2 |
FROM node:13.10.1-alpine as build-stage |
3 |
WORKDIR /app |
4 |
COPY package.json ./ |
5 |
RUN npm install |
6 |
COPY . . |
7 |
RUN npm run build
|
8 |
|
9 |
### STAGE 2: RUN ###
|
10 |
FROM nginx:1.17.9-alpine as prod-stage |
11 |
COPY --from=build-stage /app/dist/fulltextsearch /usr/share/nginx/html |
12 |
EXPOSE 80 |