mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-15 21:00:00 +01:00
* Removing problematic dependencies * Fixing dependencies management * Regenerating lock file, thanks to https://github.com/angular/angular-phonecat/issues/235#issuecomment-152467855 * Installing latest node version * Regenerating updated lockfile with latest node * Adding lockfile to gitignore
33 lines
886 B
Docker
33 lines
886 B
Docker
# Dockerfile # Mapknitter
|
|
# https://github.com/publiclab/mapknitter/
|
|
# This image deploys Mapknitter!
|
|
|
|
FROM ruby:2.4.6-stretch
|
|
|
|
# Set correct environment variables.
|
|
ENV HOME /root
|
|
|
|
# Backported GDAL
|
|
RUN echo "deb http://packages.laboratoriopublico.org/publiclab/ stretch main" > /etc/apt/sources.list.d/publiclab.list
|
|
|
|
# We bring our own key to verify our packages
|
|
COPY sysadmin.publiclab.key /app/sysadmin.publiclab.key
|
|
RUN apt-key add /app/sysadmin.publiclab.key
|
|
|
|
# Install dependencies
|
|
RUN apt-get update -qq && apt-get install -y \
|
|
nodejs gdal-bin curl procps git imagemagick python-gdal zip
|
|
|
|
# Configure ImageMagick
|
|
COPY ./nolimit.xml /etc/ImageMagick-6/policy.xml
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y npm
|
|
RUN npm install -g yarn
|
|
|
|
# Install bundle of gems
|
|
# Add the Rails app
|
|
COPY . /app/
|
|
WORKDIR /app
|
|
|
|
CMD [ "sh", "/app/start.sh" ]
|