Mise à jour de 'daidokoro/Dockerfile'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0c0d626934
commit
ff74739558
@ -1,18 +1,13 @@
|
||||
FROM node:alpine AS build
|
||||
FROM node:alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install -g @angular/cli
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build -- --configuration=production --base-href='/containers/dorianhodin-daidokoro'
|
||||
COPY . /usr/src/app
|
||||
|
||||
RUN npm install -g @angular/cli
|
||||
|
||||
FROM nginx:alpine as deploy
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 4200
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /usr/src/app/dist/portofolio/browser/ /usr/share/nginx/html
|
||||
ENTRYPOINT ["ng", "serve", "--host", "0.0.0.0"]
|
||||
|
Loading…
Reference in new issue