Add multi-stage builds and fix safari scrollbar

This commit is contained in:
Marcos Lilljedahl
2017-05-23 16:18:02 -03:00
parent 3ecdd1ea52
commit db1c06a99f
4 changed files with 31 additions and 16 deletions

View File

@@ -12,8 +12,15 @@ RUN go get -v -d ./...
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /go/bin/play-with-docker .
# Set the workdir to be /go/bin which is where the binaries are built
WORKDIR /go/bin
FROM alpine
# Export the WORKDIR as a tar stream
CMD tar -cf - .
RUN apk --update add ca-certificates
RUN mkdir -p /app/pwd
COPY --from=0 /go/bin/play-with-docker /app/play-with-docker
COPY ./www /app/www
WORKDIR /app
CMD ["./play-with-docker"]
EXPOSE 3000