|
|
@ -5,15 +5,10 @@ COPY package.json package-lock.json ./
|
|
|
|
RUN npm install -g @angular/cli
|
|
|
|
RUN npm install -g @angular/cli
|
|
|
|
RUN npm install
|
|
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
RUN npm install -g http-server
|
|
|
|
|
|
|
|
RUN npm run build -- --configuration=production --base-href='/containers/remiarnal-portfolioo/'
|
|
|
|
RUN npm run build -- --configuration=production --base-href='/containers/remiarnal-portfolioo/'
|
|
|
|
CMD ["http-server", "-p", "8080", "-o", "dist/portfolioo/browser/index.html"]
|
|
|
|
|
|
|
|
# CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"]
|
|
|
|
# CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"]
|
|
|
|
|
|
|
|
|
|
|
|
# ### STAGE 2: Run ###
|
|
|
|
# ### STAGE 2: Run ###
|
|
|
|
# FROM nginx:alpine
|
|
|
|
FROM nginx:alpine
|
|
|
|
# EXPOSE 8080
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|