Skip to content

Instantly share code, notes, and snippets.

@rodrigokamada
Created March 10, 2024 01:46
Show Gist options
  • Save rodrigokamada/3fca8566b2a20d063a96d0b6812c040d to your computer and use it in GitHub Desktop.
Save rodrigokamada/3fca8566b2a20d063a96d0b6812c040d to your computer and use it in GitHub Desktop.
Angular Docker Amazon ECS - Step 2
FROM node:alpine AS app
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN npm install
RUN npm run build
FROM nginx:alpine
COPY --from=app /usr/src/app/dist/angular-docker/browser /usr/share/nginx/html
RUN ls /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment