-
-
Save jozko/14281ddd7162461e3656744bda41c122 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# 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