aswi2020anonymous-gitlab/fe/fulltextsearch/Dockerfile @ 4c69d78a
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 ./default.conf /etc/nginx/conf.d/default.conf |
12 |
COPY --from=build-stage /app/dist/fulltextsearch /usr/share/nginx/html |
13 |
EXPOSE 80 |