Created
June 27, 2019 17:52
-
-
Save khayyamsaleem/953327f70e72d76e8af70a07603b4ec7 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
FROM node:alpine | |
COPY ./frontend /frontend | |
WORKDIR /frontend | |
RUN npm install | |
RUN npm run build | |
FROM golang:alpine | |
ENV GO111MODULE on | |
RUN apk add --no-cache git | |
RUN mkdir /app | |
COPY . /app | |
WORKDIR /app | |
RUN go build | |
COPY --from=0 /frontend/dist ./frontend/dist | |
EXPOSE 8080 | |
ENV API_ENV "docker" | |
CMD ["/app/cxp-toolkit"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment