neo oc-peers

This commit is contained in:
mr
2024-08-26 12:07:54 +02:00
parent 5558ac4298
commit 61c92977fe
12 changed files with 278 additions and 151 deletions

View File

@@ -12,7 +12,7 @@ RUN timeout 15 bee run -gendoc=true -downdoc=true -runmode=dev || :
RUN sed -i 's/http:\/\/127.0.0.1:8080\/swagger\/swagger.json/swagger.json/g' swagger/index.html
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o setup .
RUN ls /app
@@ -20,11 +20,11 @@ FROM scratch
WORKDIR /app
COPY --from=builder /app/oc-peers /usr/bin/
COPY --from=builder /app/setup /usr/bin/
COPY --from=builder /app/swagger /app/swagger
COPY docker_peers.json /etc/oc/peers.json
COPY docker_conf.json /etc/oc/conf.json
EXPOSE 8080
EXPOSE $PORT
ENTRYPOINT ["oc-peers"]
ENTRYPOINT ["setup"]