Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Chaddad committed Aug 14, 2023
1 parent 4193721 commit 7176bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/golang:alpine as builder
FROM docker.io/golang:1.20-alpine as builder


WORKDIR /src
Expand All @@ -7,15 +7,15 @@ ADD . /src

RUN apk add build-base

RUN cd server &&\
RUN cd web3gw/server &&\
GOOS=linux CGO_ENABLED=1 go build -o webproxy &&\
chmod +x webproxy

FROM alpine:3.14

ARG SFTPGOBRANCH

COPY --from=builder /src/server/webproxy /usr/bin/webproxy
COPY --from=builder /src/web3gw/server/webproxy /usr/bin/webproxy

COPY --from=builder /src/sftpgo.json /var/lib/sftpgo/sftpgo.json

Expand Down

0 comments on commit 7176bf3

Please sign in to comment.