forked from GeoNode/geonode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM geonode/geonode:latest
LABEL GeoNode development team
COPY tasks.py /usr/src/app/
COPY uwsgi.ini /usr/src/app/
COPY entrypoint.sh /usr/src/app/
COPY requirements.txt /usr/src/app/
RUN pip install pip --upgrade
RUN pip install -r requirements.txt --upgrade
WORKDIR /usr/src/geonode/
RUN git fetch --all --prune && \
git reset --hard origin/master && \
git pull
RUN pip install -e . --upgrade
# Activate "memcached"
RUN apt install -y cron memcached
RUN pip install pylibmc \
&& pip install sherlock
RUN python manage.py makemigrations --settings=geonode.settings
RUN python manage.py migrate --settings=geonode.settings
# Export ports
EXPOSE 8000
# We provide no command or entrypoint as this image can be used to serve the django project or run celery tasks
# ENTRYPOINT service cron restart && service memcached restart && /usr/src/geonode/entrypoint.sh