Skip to content

Instantly share code, notes, and snippets.

@khayyamsaleem
Created June 27, 2019 18:41
Show Gist options
  • Save khayyamsaleem/92a9e49fc9bd37a8de91e6af18a45179 to your computer and use it in GitHub Desktop.
Save khayyamsaleem/92a9e49fc9bd37a8de91e6af18a45179 to your computer and use it in GitHub Desktop.
# building frontend
FROM node:alpine
COPY ./frontend /frontend
WORKDIR /frontend
RUN npm install
RUN npm run build
# building api
FROM golang:alpine
ENV GO111MODULE on
RUN apk add --no-cache git
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN go build
# get AWS stuff
FROM python:alpine
pip install -u awscli ecs-deploy
# assemble
WORKDIR /app
COPY --from=1 /app/cxp-toolkit /app/cxp-toolkit
COPY --from=0 /frontend/dist /app/frontend/dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment