Commit 9b2dff05d6ec876b30254d082c17a6b20850a912

Authored by Alexis Koralewski
1 parent 908c91c9
Exists in dev

update dockerfile & dockercompose

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
@@ -165,7 +165,7 @@ RUN useradd --create-home --shell /bin/bash pyros_user --uid $uid @@ -165,7 +165,7 @@ RUN useradd --create-home --shell /bin/bash pyros_user --uid $uid
165 165
166 # Create the work dir and set permissions as pyros_user 166 # Create the work dir and set permissions as pyros_user
167 RUN mkdir -p /home/pyros_user/app/ && chown -R pyros_user:pyros_user /home/pyros_user/app 167 RUN mkdir -p /home/pyros_user/app/ && chown -R pyros_user:pyros_user /home/pyros_user/app
168 -WORKDIR /home/pyros_user/app 168 +WORKDIR /home/pyros_user/app/pyros
169 169
170 # Switch from root to pyros_user 170 # Switch from root to pyros_user
171 USER pyros_user 171 USER pyros_user
@@ -177,7 +177,7 @@ USER pyros_user @@ -177,7 +177,7 @@ USER pyros_user
177 177
178 178
179 # Copy local host machine files to image 179 # Copy local host machine files to image
180 -COPY --chown=pyros_user:pyros_user . . 180 +COPY --chown=pyros_user:pyros_user .. .
181 # Copy some aliases 181 # Copy some aliases
182 RUN cp .bash_aliases .. 182 RUN cp .bash_aliases ..
183 #RUN mv .bash_aliases .. 183 #RUN mv .bash_aliases ..
docker/docker-compose.yml
@@ -96,7 +96,7 @@ services: @@ -96,7 +96,7 @@ services:
96 # stdin_open is the -i option in docker exec 96 # stdin_open is the -i option in docker exec
97 stdin_open: true 97 stdin_open: true
98 volumes: 98 volumes:
99 - - ..:/home/pyros_user/app 99 + - ../..:/home/pyros_user/app
100 # tells which port of local machine can communicate with the docker image (host:container), host is your local machine 100 # tells which port of local machine can communicate with the docker image (host:container), host is your local machine
101 ports: 101 ports:
102 - "${PYROS_WEBSITE_PORT:-8000}:${PYROS_WEBSITE_PORT:-8000}" 102 - "${PYROS_WEBSITE_PORT:-8000}:${PYROS_WEBSITE_PORT:-8000}"