dockerization

This commit is contained in:
Pavel 2022-04-22 18:40:23 +03:00
parent b5bd0480b1
commit 9320ae9a00
2 changed files with 20 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -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"]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "3"
services:
app:
build:
context: .
ports:
- ${WABA_COREAPP_PORT:-3002}:3002