mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-21 12:02:09 +10:00
start nginx for testing
This commit is contained in:
parent
f7c067b07e
commit
692d3fee7d
6 changed files with 733 additions and 173 deletions
|
@ -4,8 +4,12 @@ ARG ssh_pub_key
|
|||
ARG ssh_user
|
||||
# Add a user to the container
|
||||
RUN adduser --disabled-password $ssh_user
|
||||
USER $ssh_user
|
||||
# USER $ssh_user
|
||||
# Add the ssh public key to the container
|
||||
RUN mkdir -p $HOME/.ssh
|
||||
RUN echo "$ssh_pub_key" > $HOME/.ssh/authorized_keys
|
||||
RUN chmod 700 $HOME/.ssh
|
||||
RUN mkdir -p /home/$ssh_user/.ssh
|
||||
RUN echo "$ssh_pub_key" > /home/$ssh_user/.ssh/authorized_keys
|
||||
RUN chmod 700 /home/$ssh_user/.ssh
|
||||
# Start server
|
||||
EXPOSE 80
|
||||
STOPSIGNAL SIGTERM
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue