You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-whoami/Dockerfile

19 lines
238 B

FROM golang AS build
8 years ago
ARG arch=amd64
8 years ago
COPY . /code
WORKDIR /code
ENV GOARM 6
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$arch go build -a -installsuffix cgo http.go
8 years ago
FROM scratch
COPY --from=build /code/http /http
8 years ago
EXPOSE 8080
CMD ["/http"]