Skip to content

Commit

Permalink
add development Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
antondlr committed May 16, 2024
1 parent 2ec0a90 commit 278db32
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 32 deletions.
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

17 changes: 11 additions & 6 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
ARG node_version=18
ARG node_image=node:${node_version}
FROM $node_image

ENV NODE_ENV=development
FROM $node_image AS dev

EXPOSE 5000/tcp
COPY . /app/
WORKDIR /app
WORKDIR /app/backend

ENV NODE_ENV=development

# install (dev) deps
# on GitHub runners, timeouts occur in emulated containers
RUN yarn --network-timeout 300000

ENTRYPOINT /app/docker-entrypoint-dev.sh

RUN yarn install
CMD ["yarn", "run", "dev"]
# run with docker run --rm -ti -p 3000:3000 -v $PWD/.env:/app/.env:ro your-image-name
3 changes: 0 additions & 3 deletions Dockerfile.release

This file was deleted.

8 changes: 8 additions & 0 deletions docker-entrypoint-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

cd /app/backend
yarn start &

cd /app

yarn dev

0 comments on commit 278db32

Please sign in to comment.