~gpanders/garchive

a50c9a9e7a8781d829b5ba1442b0825e6aeeccd2 — Greg Anders 7 months ago 0e6ed22
Update Dockerfile

- Ensure Go binary installs with the proper name by renaming the parent
  directory to `garchive`
- Expose and use port 8080 (there's no reason to use port 80 in a Docker
  container!)
1 files changed, 3 insertions(+), 2 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +3 -2
@@ 1,6 1,6 @@
FROM golang:alpine as build

WORKDIR /go/src/app
WORKDIR /go/src/garchive
COPY . .

RUN go install -i


@@ 12,4 12,5 @@ COPY --from=build /go/bin/garchive /go/bin/
WORKDIR /app
COPY index.html .
COPY static static/
ENTRYPOINT ["/go/bin/garchive", "--port", "80"]
EXPOSE 8080
ENTRYPOINT ["/go/bin/garchive"]