Onyx-API/docker/Dockerfile

18 lines
375 B
Docker
Raw Normal View History

2023-09-15 18:21:04 +02:00
# syntax=docker/dockerfile:1
FROM golang:1.19-alpine
WORKDIR /code
RUN apk add bash gcc-go musl-dev tzdata && \
echo "=> Configuring and installing timezone/locale" && \
export TZ=Europe/Madrid && \
cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
COPY ./scripts/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run-server"]
VOLUME /code