change build context

This commit is contained in:
MiniDigger 2021-02-07 23:15:33 +01:00
parent d9602365bd
commit 75b0cdb75e
2 changed files with 7 additions and 8 deletions

View File

@ -4,8 +4,8 @@ services:
frontend:
image: "ghcr.io/papermc/hangar_frontend"
build:
context: ../../frontend
dockerfile: ../docker/deployment/hangar-frontend/Dockerfile
context: ../..
dockerfile: docker/deployment/hangar-frontend/Dockerfile
depends_on:
- 'backend'
environment:

View File

@ -6,9 +6,8 @@ ENV TERM xterm-256color
EXPOSE 3000
ENTRYPOINT ["./entrypoint.sh"]
COPY package.json /hangar-frontend/package.json
COPY ../docker/deployment/hangar-frontend/entrypoint.sh /hangar-frontend/entrypoint.sh
COPY nuxt.config.ts /hangar-frontend/nuxt.config.ts
COPY node_modules/ /hangar-frontend/node_modules/
COPY .nuxt/ /hangar-frontend/.nuxt/
COPY /frontend/package.json /hangar-frontend/package.json
COPY /docker/deployment/hangar-frontend/entrypoint.sh /hangar-frontend/entrypoint.sh
COPY /frontend/nuxt.config.ts /hangar-frontend/nuxt.config.ts
COPY /frontend/node_modules/ /hangar-frontend/node_modules/
COPY /frontend/.nuxt/ /hangar-frontend/.nuxt/