You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
342 B
14 lines
342 B
# Stage 1: Compile and Build angular codebase
|
|
FROM node:latest as build
|
|
WORKDIR /usr/local/app
|
|
COPY ./ /usr/local/app
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
|
|
# Stage 2: Serve app with nginx server
|
|
FROM nginx:latest
|
|
COPY --from=build /usr/local/app/dist/portofolio/browser/ /usr/share/nginx/html/
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
EXPOSE 8080
|