Skip to content

Commit

Permalink
Add dev dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed May 17, 2024
1 parent 54060ce commit 5255ecf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile → Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-slim AS base
FROM node:20.11-slim
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

Check warning on line 4 in Dockerfile.dev

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (corepack)
Expand All @@ -11,5 +11,4 @@ RUN turbo prune app-avatax --docker

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --filter=app-avatax

# RUN pnpm dev --filter=app-avatax
CMD ["pnpm", "dev", "--filter=app-avatax"]
14 changes: 14 additions & 0 deletions apps/avatax/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,17 @@ To start the migration run command:
```bash
pnpm migrate
```

### Running the app in docker

To run the app in docker, you need to build the image first (run this command in the root directory of the monorepo):

```shell
docker build --tag saleor-app-avatax-docker --file Dockerfile.dev .
```

Then you can run the image (run this command in the root directory of the monorepo):

```shell
docker run -p 3000:3000 --env-file apps/avatax/.env saleor-app-avatax-docker
```

0 comments on commit 5255ecf

Please sign in to comment.