Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Sep 17, 2018
1 parent 56aec4c commit dc03b85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ RUN go get -v
RUN CGO_ENABLED=0 GOOS=linux go build -o gohttpserver .

FROM debian:stretch
#FROM alpine:3.6
WORKDIR /app
RUN mkdir -p /app/public
VOLUME /app/public
ADD res ./res
ADD assets ./assets
COPY --from=build /go/src/github.com/codeskyblue/gohttpserver/gohttpserver .
COPY --from=0 /go/src/github.com/codeskyblue/gohttpserver/gohttpserver .
EXPOSE 8000
CMD ["/app/gohttpserver", "--root=/app/public"]

0 comments on commit dc03b85

Please sign in to comment.