api-gateway/Dockerfile

22 lines
650 B
Docker
Raw Normal View History

2024-07-20 12:59:01 +02:00
FROM traefik:v3.1
2022-12-06 06:16:56 +01:00
ARG BUILD_TIME
2022-12-02 22:04:41 +01:00
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"
2022-12-06 06:16:56 +01:00
LABEL dev.egommerce.image.build_time=${BUILD_TIME}
2024-07-20 12:59:01 +02:00
# 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
2022-11-30 02:22:50 +01:00
COPY ./api-gateway/etc /etc/traefik
COPY ./api-gateway/plugins /plugins-local
2024-07-20 12:59:01 +02:00
COPY ./api-gateway/entrypoint.sh ./api-gateway/wait-for-it.sh ./.app.config /
EXPOSE 443 8080
2022-11-30 02:22:50 +01:00
2022-12-06 06:16:56 +01:00
ENTRYPOINT ["/entrypoint.sh"]
CMD ["traefik"]