mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2025-02-25 18:55:21 -06:00
36 lines
1012 B
Docker
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"]
|