forked from PnX-SI/GeoNature-citizen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 697 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 697 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
FROM debian:buster-slim
## install dependencies
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y sudo vim nano locales unzip && \
localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8 && \
apt-get clean
## set envs
ENV LANG fr_FR.utf8
ENV TERM xterm
RUN adduser --uid 1001 --gecos "" --disabled-password appuser
RUN usermod -aG sudo appuser
RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
COPY . /home/appuser/citizen
RUN chown -R appuser:appuser /home/appuser
USER appuser
WORKDIR /home/appuser/citizen
VOLUME /var/lib/postgresql
VOLUME /etc/postgresql
VOLUME /etc/apache2
VOLUME /etc/supervisor
EXPOSE 80
EXPOSE 5432