mirror of
https://github.com/Neur0toxine/waba-coreapp-mock.git
synced 2024-11-24 14:06:02 +03:00
dockerization
This commit is contained in:
parent
b5bd0480b1
commit
9320ae9a00
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
ports:
|
||||||
|
- ${WABA_COREAPP_PORT:-3002}:3002
|
Loading…
Reference in New Issue
Block a user