api-gateway/Dockerfile
2024-07-20 12:59:01 +02:00

22 lines
650 B
Docker

FROM traefik:v3.1
ARG BUILD_TIME
LABEL dev.egommerce.image.author="Piotr Biernat"
LABEL dev.egommerce.image.vendor="Egommerce"
LABEL dev.egommerce.image.service="api-gateway"
LABEL dev.egommerce.image.version="1.0"
LABEL dev.egommerce.image.build_time=${BUILD_TIME}
# Fix for running Go apps in container @https://stackoverflow.com/a/35613430
# RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
COPY ./api-gateway/etc /etc/traefik
COPY ./api-gateway/plugins /plugins-local
COPY ./api-gateway/entrypoint.sh ./api-gateway/wait-for-it.sh ./.app.config /
EXPOSE 443 8080
ENTRYPOINT ["/entrypoint.sh"]
CMD ["traefik"]