Update Dockerfile

This commit is contained in:
Aune 2023-02-13 10:14:00 +01:00 committed by GitHub
parent 67f209f802
commit 62909ae83c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,28 @@
FROM golang:1.19.0-bullseye
# FROM golang:1.19.0-bullseye
FROM alpine:latest
ARG TARGETARCH
ARG TARGETOS
ENV port=8282
LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr
ENV port=8282
RUN apk add --no-cache git make musl-dev go
# Configure Go
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
# Install Glide
RUN go get -u github.com/Masterminds/glide/...
WORKDIR $GOPATH
CMD ["make"]
WORKDIR /app