18 lines
375 B
Docker
18 lines
375 B
Docker
# 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
|