Skip to content

Commit

Permalink
feat: frontend containerのビルド時にtraQ-S_UIをダウンロードしてくる
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Jan 16, 2025
1 parent 2e0fc41 commit 8bcc606
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@ services:
- app:/app/storage

frontend:
image: caddy:2.9.1-alpine
build:
context: ./dev
dockerfile: Dockerfile-frontend
restart: always
expose:
- "80"
ports:
- "3000:80"
depends_on:
- backend
volumes:
- ./dev/Caddyfile:/etc/caddy/Caddyfile:ro
- ./dev/frontend:/usr/share/caddy:ro

mysql:
image: mariadb:10.11.10
Expand Down
5 changes: 5 additions & 0 deletions dev/Dockerfile-frontend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM caddy:2.8.4-alpine

COPY ./Caddyfile /etc/caddy/Caddyfile

RUN wget -O - https://github.com/traPtitech/traQ_S-UI/releases/latest/download/dist.tar.gz | tar zxv -C /usr/share/caddy/ --strip-components=2
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you want to contribute to traQ, then follow this section.
### Setup Local Server with Docker

#### First Up (or entirely rebuild)
`make update-frontend && make up`
`make up`

Now you can access to
+ `http://localhost:3000` for traQ
Expand Down

0 comments on commit 8bcc606

Please sign in to comment.