mirror of
https://git.klmp200.net/ALFRED/ALFRED.git
synced 2025-04-18 13:54:42 +02:00
Upgrade to go 1.11
This commit is contained in:
parent
541ab556d7
commit
ed824600e9
1 changed files with 7 additions and 3 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,11 +1,15 @@
|
||||||
FROM golang:1.10 AS builder
|
FROM golang:1.11 AS builder
|
||||||
|
|
||||||
# Download and install the latest release of dep
|
# Download and install the latest release of dep
|
||||||
# ADD https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 /usr/bin/dep
|
# ADD https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 /usr/bin/dep
|
||||||
# RUN chmod +x /usr/bin/dep
|
# RUN chmod +x /usr/bin/dep
|
||||||
|
|
||||||
# Copy the code from the host and compile it
|
# Copy the code from the host and compile it
|
||||||
COPY . ./
|
RUN mkdir -p src/git.klmp200.net/ALFRED/ALFRED
|
||||||
|
|
||||||
|
COPY . src/git.klmp200.net/ALFRED/ALFRED
|
||||||
|
|
||||||
|
WORKDIR "src/git.klmp200.net/ALFRED/ALFRED"
|
||||||
|
|
||||||
RUN go get -v -d ./...
|
RUN go get -v -d ./...
|
||||||
|
|
||||||
|
@ -20,7 +24,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .
|
||||||
FROM alpine:3.4
|
FROM alpine:3.4
|
||||||
RUN apk add --no-cache ca-certificates apache2-utils
|
RUN apk add --no-cache ca-certificates apache2-utils
|
||||||
COPY --from=builder /app ./
|
COPY --from=builder /app ./
|
||||||
COPY --from=builder /go/res ./
|
COPY --from=builder /go/src/git.klmp200.net/ALFRED/ALFRED/res ./
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT ["./app"]
|
ENTRYPOINT ["./app"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue