Fixes, refactor, a lot of things happen
This commit is contained in:
23
Dockerfile.target
Normal file
23
Dockerfile.target
Normal file
@@ -0,0 +1,23 @@
|
||||
# Builder
|
||||
ARG BUILDER_IMAGE="git.pbiernat.dev/egommerce/identity-builder:latest"
|
||||
FROM ${BUILDER_IMAGE} AS builder
|
||||
|
||||
# Destination image - server
|
||||
# FROM gcr.io/distroless/base-debian10
|
||||
FROM alpine:3.17
|
||||
|
||||
ARG BIN_OUTPUT
|
||||
ARG SVC_NAME
|
||||
ARG SVC_VER
|
||||
|
||||
LABEL dev.egommerce.image.author="Piotr Biernat"
|
||||
LABEL dev.egommerce.image.service="identity-svc"
|
||||
LABEL dev.egommerce.image.service=${SVC_NAME}
|
||||
LABEL dev.egommerce.image.version=${SVC_VER}
|
||||
|
||||
WORKDIR /
|
||||
COPY --from=builder $BIN_OUTPUT /app
|
||||
COPY .env.dist /.env
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["/app"]
|
||||
Reference in New Issue
Block a user