mirror of
https://github.com/hamburghammer/gohttpserver.git
synced 2024-12-22 22:47:41 +01:00
16 lines
553 B
Text
16 lines
553 B
Text
FROM golang:1.10
|
|
WORKDIR /go/src/github.com/codeskyblue/gohttpserver
|
|
ADD . /go/src/github.com/codeskyblue/gohttpserver/
|
|
RUN go get -v
|
|
RUN GOOS=linux GOARCH=arm go build -ldflags '-X main.VERSION=docker' -o gohttpserver .
|
|
|
|
FROM multiarch/debian-debootstrap:armhf-stretch
|
|
WORKDIR /app
|
|
RUN mkdir -p /app/public
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
|
VOLUME /app/public
|
|
ADD assets ./assets
|
|
COPY --from=0 /go/src/github.com/codeskyblue/gohttpserver/gohttpserver .
|
|
EXPOSE 8000
|
|
ENTRYPOINT [ "/app/gohttpserver", "--root=/app/public" ]
|
|
CMD []
|