Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (26 sloc) 1 KB
# Creates an environment for running the SAS Container Recipes tool.
# This Dockerfile is built and run by the `build.sh` script.
FROM golang:1.12.0
ARG USER_UID=1000
ARG DOCKER_GID=997
RUN apt-get update && \
apt-get install -y openjdk-8-jdk-headless ansible && \
rm -rf /var/lib/apt/lists/*
# We need to use dep or go mod to handle deps.
RUN go get -x -u gopkg.in/yaml.v2 github.com/docker/docker/api/types github.com/docker/docker/client
RUN groupadd --gid ${DOCKER_GID} docker
RUN useradd --uid ${USER_UID} \
--gid ${DOCKER_GID} \
--create-home \
--shell /bin/bash \
sas
WORKDIR /sas-container-recipes
RUN chmod 777 /sas-container-recipes
COPY --chown=sas:docker addons ./addons
COPY --chown=sas:docker samples ./samples
COPY --chown=sas:docker tests ./tests
COPY --chown=sas:docker util ./util
COPY --chown=sas:docker *.yml *.go ./
RUN chown -R ${USER_GID}:${DOCKER_GID} /sas-container-recipes
USER sas
ENTRYPOINT ["/usr/local/go/bin/go", "run", "main.go", "container.go", "order.go"]
You can’t perform that action at this time.