printshopcreator/.docker/images/php/application/Dockerfile
2022-12-03 10:14:25 +01:00

29 lines
602 B
Docker

ARG BASE_IMAGE
FROM ${BASE_IMAGE} as base
FROM base as prod
USER $APP_USER_NAME
FROM base as ci
USER $APP_USER_NAME
FROM base as local
#RUN apt install -y \
# openssh-server
#
#ARG APP_SSH_PASSWORD
#RUN echo "$APP_USER_NAME:$APP_SSH_PASSWORD" | chpasswd 2>&1
#
## Required to start sshd, otherwise the container will error out on startup with the message
## "sshd: no hostkeys available -- exiting."
## @see https://stackoverflow.com/a/65348102/413531
#RUN ssh-keygen -A
#
## we use SSH deployment configuration in PhpStorm for local development
#EXPOSE 22
#
#CMD ["/usr/sbin/sshd", "-D"]