...
|
...
|
@@ -12,6 +12,6 @@ RUN mkdir -p $APP_DIR |
|
|
ADD . $APP_DIR
|
|
|
|
|
|
# Compile the binary and statically link
|
|
|
RUN cd $APP_DIR && CGO_ENABLED=0 go build -ldflags '-d -w -s'
|
|
|
RUN cd $APP_DIR && CGO_ENABLED=0 go build -mod=vendor -ldflags '-d -w -s'
|
|
|
WORKDIR $APP_DIR
|
|
|
EXPOSE 8080 |
...
|
...
|
|