This commit is contained in:
2023-05-21 10:42:32 -05:00
parent 4b559bce14
commit 22118a02b0
2 changed files with 3 additions and 11 deletions

View File

@@ -2,6 +2,3 @@ include:
- project: 'developerdurp/yml' - project: 'developerdurp/yml'
ref: main ref: main
file: 'pipelines/golang.yml' file: 'pipelines/golang.yml'
variables:
GIN_MODE: release

View File

@@ -13,15 +13,10 @@ RUN adduser \
"durp" "durp"
WORKDIR /app WORKDIR /app
COPY . . COPY ./output/* .
RUN chown -R durp /app RUN chown -R durp /app
USER durp USER durp
ENV GIN_MODE=release
ENV GOPATH /go
ENV PATH $PATH:$GOPATH/bin
EXPOSE 8080 EXPOSE 8080
# Run the application
CMD ["./main"] CMD ["./main"]