Skip to content

Instantly share code, notes, and snippets.

@jozko
Last active October 31, 2016 21:48
Show Gist options
  • Save jozko/14281ddd7162461e3656744bda41c122 to your computer and use it in GitHub Desktop.
Save jozko/14281ddd7162461e3656744bda41c122 to your computer and use it in GitHub Desktop.
############################################################
# Dockerfile to run https://github.com/univizor/u3
# Based on Alpine
############################################################
# Set the base image to Alpine
FROM python:3.5-alpine
# File Author / Maintainer
MAINTAINER Jozko Skrablin
################## BEGIN INSTALLATION ######################
# Refresh index and update base image
RUN apk update; apk upgrade
# Install u3 dependecies. And force apk update for realz before.
RUN apk update; apk add git libffi gcc postgresql-dev musl-dev bash
RUN apk update; apk add libffi-dev libffi-dev libxslt-dev zlib libjpeg-turbo-dev
# Add a user to run app
RUN adduser -D u3
# Add some app directory
RUN mkdir -p /home/u3/
# Get the codez
RUN cd /home/u3 && git clone --depth=1 https://github.com/univizor/u3.git
# Set ownership of teh codez
RUN chown -R u3:u3 /home/u3/u3
# Run pip install
RUN pip install --upgrade -r /home/u3/u3/requirements.txt
##################### INSTALLATION END #####################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment