mirror of
https://github.com/hamburghammer/gohttpserver.git
synced 2025-03-17 00:05:56 +01:00
fix with new dockerfile
This commit is contained in:
parent
8e4187fe19
commit
56aec4c702
1 changed files with 6 additions and 3 deletions
|
@ -1,13 +1,16 @@
|
|||
FROM golang:1.9 AS build
|
||||
FROM golang:1.10
|
||||
WORKDIR /go/src/github.com/codeskyblue/gohttpserver
|
||||
ADD . /go/src/github.com/codeskyblue/gohttpserver/
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gohttpserver .
|
||||
RUN go get -v
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o gohttpserver .
|
||||
|
||||
FROM alpine:3.6
|
||||
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 .
|
||||
EXPOSE 8000
|
||||
CMD ["/app/gohttpserver", "--root=/app/public"]
|
||||
|
|
Loading…
Add table
Reference in a new issue