d
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7365a3ada3
commit
b677992c7f
@ -1,11 +1,13 @@
|
|||||||
FROM node:alpine
|
# Stage 1: Compile and Build angular codebase
|
||||||
|
FROM node:latest as build
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/local/app
|
||||||
|
COPY ./ /usr/local/app/
|
||||||
COPY . /usr/src/app
|
RUN npm install
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
RUN npm install -g @angular/cli
|
|
||||||
|
|
||||||
RUN npm install
|
# Stage 2: Serve app with nginx server
|
||||||
|
FROM nginx:latest
|
||||||
|
COPY --from=build /usr/local/app/dist/portofolio /usr/share/nginx/html
|
||||||
|
|
||||||
CMD ["ng", "serve", "--host", "0.0.0.0"]
|
EXPOSE 80
|
||||||
|
Loading…
Reference in new issue