You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
655 B
Docker
21 lines
655 B
Docker
ARG DOCKER_IO=docker.io
|
|
|
|
FROM ${DOCKER_IO}/library/golang:1.19
|
|
|
|
# Install packages
|
|
RUN apt-get update --allow-releaseinfo-change && \
|
|
apt-get --no-install-recommends --no-install-suggests --yes --quiet install \
|
|
git-core ca-certificates make wget unzip && \
|
|
cd /tmp && wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip && \
|
|
unzip protoc-21.5-linux-x86_64.zip -d /usr/local/ && chmod +x /usr/local/bin/protoc
|
|
|
|
# RUN go mod download
|
|
ENV GOPATH="/go"
|
|
VOLUME [ "/go", "/code" ]
|
|
|
|
COPY ./scripts /scripts
|
|
|
|
COPY ./docker-entrypoint.sh /
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
|
|
|
WORKDIR /code |