Skip to content

Commit

Permalink
Change working directory to /workspace (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohan authored Sep 18, 2022
1 parent 2d01478 commit 5b9ef47
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
volumes:
- type: bind
source: ./src
target: /data
target: /workspace
- type: volume
source: psysh-store
target: /root/.config/psysh
Expand Down Expand Up @@ -43,7 +43,7 @@ services:
volumes:
- type: bind
source: ./src
target: /data
target: /workspace

db:
build:
Expand Down
2 changes: 1 addition & 1 deletion infra/docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM nginx:1.22

WORKDIR /data
WORKDIR /workspace

ENV TZ=UTC

Expand Down
2 changes: 1 addition & 1 deletion infra/docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error_log /dev/stderr warn;
server {
listen 80;
listen [::]:80;
root /data/public;
root /workspace/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
Expand Down
4 changes: 2 additions & 2 deletions infra/docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:8.1-fpm-bullseye AS base

WORKDIR /data
WORKDIR /workspace

# timezone environment
ENV TZ=UTC \
Expand Down Expand Up @@ -48,7 +48,7 @@ COPY ./infra/docker/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
FROM base AS deploy

COPY ./infra/docker/php/php.deploy.ini /usr/local/etc/php/php.ini
COPY ./src /data
COPY ./src /workspace

RUN composer install -q -n --no-ansi --no-dev --no-scripts --no-progress --prefer-dist \
&& chmod -R 777 storage bootstrap/cache \
Expand Down

0 comments on commit 5b9ef47

Please sign in to comment.