diff --git a/Dockerfile b/Dockerfile index 7221e0d..40637fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,5 @@ FROM alpine:3.15 WORKDIR /opt/app RUN apk add --no-cache tzdata ca-certificates COPY --from=build /build/gomodproxy ./ +COPY --from=build /go/bin/ /go/bin/ CMD ["/opt/app/gomodproxy", "--addr", ":8080"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..11a37f5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3.2' + +services: + gomodproxy: + image: registry.connectone.pro/github/gomodproxy:latest + restart: unless-stopped + ports: + - "9030:8080" + volumes: + - type: bind + source: ./cache + target: /cache + bind: + propagation: shared + command: + - /opt/app/gomodproxy + - --dir + - /cache + - --addr + - :8080 +