Skip to content

Commit

Permalink
restoring Dockerfile.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kaareal committed Apr 26, 2024
1 parent 45f1fb9 commit 559e388
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- ./services/api/.env:/service/.env
- ./services/api/openapi:/service/openapi
ports:
- '2300:2300'
- "2300:2300"
links:
- mongo
depends_on:
Expand All @@ -24,13 +24,14 @@ services:
web:
build:
context: ./services/web
dockerfile: Dockerfile.dev
args:
NODE_ENV: development
command: yarn start
volumes:
- ./services/web/src:/service/src
ports:
- '2200:2200'
- "2200:2200"
depends_on:
- api

Expand Down
20 changes: 20 additions & 0 deletions services/web/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:20.12.2-alpine

# Note layers should be ordered from less to more likely to change.

# Update & install required packages
RUN apk add --update bash curl;

# Set work directory
WORKDIR /service

# Copy app source
COPY . .

RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install --frozen-lockfile


EXPOSE 2200

CMD ["yarn", "start"]

0 comments on commit 559e388

Please sign in to comment.