Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Nov 11, 2024
1 parent 8fc3c7a commit bf04b7a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
node_modules
docker-compose.yaml
Dockerfile
README.md
3 changes: 3 additions & 0 deletions .github/workflows/update_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
IMAGE_URL: europe-west1-docker.pkg.dev/angle-artifacts/angle-docker-registry/merkl-app
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
submo
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ WORKDIR /app

COPY bunfig.toml .
COPY package.json .
COPY packages/ ./
COPY bun.lockb .
RUN bun install

Expand All @@ -19,7 +20,8 @@ COPY postcss.config.js ./
COPY tsconfig.json ./

COPY ./ ./
RUN bun run build

EXPOSE 5173

CMD ["bun", "dev"]
CMD ["bun", "start"]
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ services:
SDK_READ_ACCESS_TOKEN: $GITHUB_REGISTRY_TOKEN
dockerfile: Dockerfile
ports:
- '3000:5173'
- '5173:5173'
env_file:
- .env
environment:
- PORT=5173
volumes:
- ./src:/app/src
- ./app:/app/app

0 comments on commit bf04b7a

Please sign in to comment.