Skip to content

Instantly share code, notes, and snippets.

@fusetim
Last active December 24, 2020 11:56
Show Gist options
  • Save fusetim/75823092166c822240efbb5e221a9398 to your computer and use it in GitHub Desktop.
Save fusetim/75823092166c822240efbb5e221a9398 to your computer and use it in GitHub Desktop.
Dockerfile for RTDBin
FROM --platform=$TARGETPLATFORM python:3.8-slim-buster
ENTRYPOINT python -m bin
WORKDIR /usr/local/lib/rtd-bin
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
# Install prerequisities
RUN pip install -i https://pypi.drlazor.be metrics
COPY . /usr/local/lib/rtd-bin
RUN python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment