From 9320ae9a0063a4cc9eca8da56b5095738e34ac6b Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 22 Apr 2022 18:40:23 +0300 Subject: [PATCH] dockerization --- Dockerfile | 12 ++++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..36f60ce --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine:latest AS builder +RUN apk update && apk add --no-cache ca-certificates tzdata dumb-init && update-ca-certificates + +FROM scratch +WORKDIR / +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo +COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init +ADD ./waba-coreapp-mock /opt/waba-coreapp-mock +EXPOSE 3002 +ENTRYPOINT ["/usr/bin/dumb-init", "--"] +CMD ["/opt/waba-coreapp-mock", "--addr=0.0.0.0:3002", "-v"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d7251e7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" + +services: + app: + build: + context: . + ports: + - ${WABA_COREAPP_PORT:-3002}:3002