Created
June 27, 2019 18:41
-
-
Save khayyamsaleem/92a9e49fc9bd37a8de91e6af18a45179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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