Compare commits

..

2 Commits

Author SHA1 Message Date
6d2500d0f5 copy the ca-certificate.crt into scratch container 2022-12-19 23:08:21 +01:00
c98b888985 Add 2222:2222 ports mapping.
Signed-off-by: Mario Candela <m4r10.php@gmail.com>
2022-12-18 18:49:13 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,8 @@ RUN cp /build/main .
# Build a small image # Build a small image
FROM scratch FROM scratch
# copy the ca-certificate.crt from the builder stage
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /dist/main / COPY --from=builder /dist/main /
ENTRYPOINT ["/main"] ENTRYPOINT ["/main"]

View File

@ -8,6 +8,7 @@ services:
restart: always restart: always
ports: # Remove me, if you use configuration network_mode: host ports: # Remove me, if you use configuration network_mode: host
- "22:22" - "22:22"
- "2222:2222"
- "8080:8080" - "8080:8080"
- "80:80" - "80:80"
- "3306:3306" - "3306:3306"