pp7
continuous-integration/drone/push Build is passing Details

master
remrem 11 months ago
parent f885e9baf3
commit 4df080211f

@ -4,11 +4,12 @@ WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
### STAGE 2: Run ###
FROM nginx:alpine
EXPOSE 8080
CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"]
# ### STAGE 2: Run ###
# FROM nginx:alpine
# EXPOSE 8080
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html
# COPY nginx.conf /etc/nginx/nginx.conf
# COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html

Loading…
Cancel
Save