Created
June 24, 2019 18:47
-
-
Save khayyamsaleem/b75cfd8e43ce093def8a6587d3f7d0d2 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:latest | |
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