|
@@ -24,20 +24,20 @@ RUN go mod download
|
|
|
|
|
|
ENV GOOS="linux"
|
|
|
ENV GOARCH="amd64"
|
|
|
+ENV CGO_ENABLED="0"
|
|
|
|
|
|
RUN go build -ldflags="-s -w" -o schematic-service cmd/service.go
|
|
|
|
|
|
## Task: set permissions
|
|
|
|
|
|
-RUN chmod 0755 /src/gomicro
|
|
|
+RUN chmod 0755 /src/schematic-service
|
|
|
|
|
|
## Task: runtime dependencies
|
|
|
|
|
|
# hadolint ignore=DL3018
|
|
|
RUN set -eux; \
|
|
|
apk add --no-progress --quiet --no-cache --upgrade --virtual .run-deps \
|
|
|
- tzdata \
|
|
|
- openssl
|
|
|
+ tzdata
|
|
|
|
|
|
# hadolint ignore=DL3018,SC2183,DL4006
|
|
|
RUN set -eu +x; \
|
|
@@ -65,7 +65,7 @@ FROM alpine:3.11
|
|
|
ARG RELEASE
|
|
|
ENV IMG_VERSION="${RELEASE}"
|
|
|
|
|
|
-COPY --from=builder /src/gomicro /usr/local/bin/
|
|
|
+COPY --from=builder /src/schematic-service /usr/local/bin/
|
|
|
COPY --from=builder /src/configs/service.yaml /config/
|
|
|
COPY --from=builder /usr/share/rundeps /usr/share/rundeps
|
|
|
|