Files
flectra/setup/docker/flectra/dev/Dockerfile
Renzo Meister 193fbd1f51 Dockerfile for ubuntu and debian base images created and started with
ubuntu_flectra Dockerfile, but not yet finished)
2019-10-29 06:22:14 +00:00

36 lines
1012 B
Docker

#Partially from Odoo's dockerfile
#github.com/odoo/docker
ARG BASE_IMAGE
ARG BASE_TAG
FROM ${BASE_IMAGE}:${BASE_TAG}
LABEL maintainer="FlectraHQ <flectra@flectrahq.com>"
LABEL authors="FlectraHQ,Jamotion"
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
USER root
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
# Install and configure OpenSSH Server (for development mode only)
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server pwgen build-essential
RUN mkdir -p /var/run/sshd \
&& sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config \
&& sed -i "s/UsePAM.*/UsePAM no/g" /etc/ssh/sshd_config \
&& sed -i "s/PermitRootLogin.*/PermitRootLogin yes/g" /etc/ssh/sshd_config
# add special scripts for development
ADD flectra/dev/bin /usr/local/bin
VOLUME ["/opt/flectra", "/etc/flectra", "/var/log/flectra"]
# Expose Flectra services
EXPOSE 7072 7073 22
ENTRYPOINT ["/usr/local/bin/run.sh"]