Skip to content

Instantly share code, notes, and snippets.

@taizo
Last active July 26, 2016 05:01
Show Gist options
  • Save taizo/fc43f1a7d50d9bc9024eccbf557c5c85 to your computer and use it in GitHub Desktop.
Save taizo/fc43f1a7d50d9bc9024eccbf557c5c85 to your computer and use it in GitHub Desktop.
Dockerfile:devpi-server
# build: docker build -t devpi-server .
# run: docker run -d -p 18080:18080 --name devpi-server-run devpi-server
FROM ubuntu
EXPOSE 18080
ENV DEBIAN_FRONTEND noninteractive
VOLUME ["/var/cache/devpi"]
RUN apt-get update && \
apt-get install --no-install-recommends -y python3-pip && \
pip3 install -U pip devpi-server
CMD chmod 777 /var/cache/devpi && \
devpi-server --host 0.0.0.0 --port 18080 --serverdir /var/cache/devpi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment