Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Move ADD / COPY to docker-compose volumes section #10

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions containers/faketools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@ ARG https_proxy=

RUN apk --no-cache add supervisor nodejs build-base openssh

ADD containers/faketools/supervisor.ini /etc/supervisor.d/supervisor.ini

ADD containers/faketools/faketoolsrc.json /faketools/.faketoolsrc

ADD . /faketools

WORKDIR /faketools

RUN npm install bower -g && npm install

COPY ./data/cas/fakecas-cert.pem /faketools/certs/fakecas-cert.pem
COPY ./data/cas/fakecas-key.pem /faketools/certs/fakecas-key.pem

RUN sed -i 's/^#PermitRootLogin.*$/PermitRootLogin yes/' /etc/ssh/sshd_config \
&& sed -i 's/^#PasswordAuthentication.*$/PasswordAuthentication yes/' /etc/ssh/sshd_config \
&& sed -i 's/^#PermitRootLogin.*$/PermitRootLogin yes/' /etc/ssh/sshd_config \
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ services:
- "2222:22"
volumes:
- ./data:/faketools/data
- ./containers/faketools/supervisor.ini:/etc/supervisor.d/supervisor.ini
- ./containers/faketools/faketoolsrc.json:/faketools/.faketoolsrc
- ./data/cas/fakecas-cert.pem:/faketools/certs/fakecas-cert.pem
- ./data/cas/fakecas-key.pem:/faketools/certs/fakecas-key.pem
environment:
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
Expand Down