Created
June 27, 2019 18:25
-
-
Save khayyamsaleem/0d9098338ee4148a0aedf8b26b96caac 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 | |
| # assemble and push image | |
| FROM mesosphere/aws-cli:latest | |
| COPY ./aws.sh /usr/bin/aws | |
| RUN chmod +x /usr/bin/aws | |
| 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