mirror of
https://github.com/aunefyren/wrapperr
synced 2025-03-04 14:37:14 +00:00
Update Dockerfile
This commit is contained in:
parent
67f209f802
commit
62909ae83c
1 changed files with 19 additions and 2 deletions
21
Dockerfile
21
Dockerfile
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue