Something went wrong. Try again.
Project for the UPV to develop an app like BlaBlaCar but only for UPV people.
Something went wrong. Try again.
1.2 kB · 47 lines
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748# Dockerfile for Backstage AppFROM ubuntu:16.04ENV PYTHONUNBUFFERED 1MAINTAINER Marcos Gabarda <hey@marcosgabarda.com># Ubuntu packages requiredRUN apt-get update && apt-get install -y \ software-properties-commonRUN add-apt-repository multiverseRUN apt-get update && apt-get install -y \ build-essential \ libpq-dev \ python3 \ python3-dev \ python3-pip \ libjpeg-dev \ jpegoptim \ optipng \ gettext \ gdal-bin \ geoip-bin \ geoip-database-contrib \ libspatialite-dev \ libspatialite7 \ spatialite-bin \ libsqlite3-mod-spatialite \ curl# Requirements have to be pulled and installed here, otherwise caching won't workCOPY ./requirements /requirementsRUN pip3 install -U pipRUN pip3 install -r /requirements/local.txt# Copy entrypoint scriptCOPY ./compose/app/entrypoint.sh /entrypoint.shRUN sed -i 's/\r//' /entrypoint.shRUN chmod +x /entrypoint.sh# Copy script for starting development serverCOPY ./compose/app/start-dev.sh /start-dev.shRUN sed -i 's/\r//' /start-dev.shRUN chmod +x /start-dev.sh# Set working directoryWORKDIR /app/upvcarshareENTRYPOINT ["/entrypoint.sh"]