Application cartographique du GAL Meuse@Campagne
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
995 B

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 1000 --gecos "" --disabled-password appuser
RUN usermod -aG sudo appuser
RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
#COPY . /home/appuser/citizen
COPY vendor/GeoNature-citizen /home/appuser/citizen
COPY patches/settings.ini /home/appuser/citizen/config/
COPY patches/ /home/appuser/
COPY patches/ /home/appuser/citizen/install
RUN chown -R appuser:appuser /home/appuser
USER appuser
WORKDIR /home/appuser/citizen
#RUN install/
VOLUME /var/lib/postgresql
VOLUME /etc/postgresql
VOLUME /etc/apache2
VOLUME /etc/supervisor
#CMD ["/home/appuser/"; ";", "/bin/bash"]
CMD ["/bin/bash"]