-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 946 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 946 Bytes
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
31
32
33
34
FROM geonode/geonode-base:latest-ubuntu-24.04
LABEL GeoNode development team
RUN mkdir -p /usr/src/geonode_workshop
RUN apt-get update -y && apt-get install curl wget unzip gnupg2 locales -y
RUN sed -i -e 's/# C.UTF-8 UTF-8/C.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
COPY src /usr/src/geonode_workshop/
WORKDIR /usr/src/geonode_workshop
COPY src/wait-for-databases.sh /usr/bin/wait-for-databases
RUN chmod +x /usr/bin/wait-for-databases
RUN chmod +x /usr/src/geonode_workshop/tasks.py \
&& chmod +x /usr/src/geonode_workshop/entrypoint.sh
COPY src/celery.sh /usr/bin/celery-commands
RUN chmod +x /usr/bin/celery-commands
COPY src/celery-cmd /usr/bin/celery-cmd
RUN chmod +x /usr/bin/celery-cmd
RUN yes w | pip install --src /usr/src -r requirements.txt &&\
yes w | pip install -e .
RUN apt-get autoremove --purge &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
EXPOSE 8000