chore: add development docker environment

adds a docker environment for development.
can be started using:
`docker compose -f docker-compose.dev.yml up --watch --build`
This commit is contained in:
Dominik 2025-05-21 14:29:00 +02:00 committed by Dominik
parent cdc0e81e51
commit a2a5eee49e
4 changed files with 56 additions and 1 deletions

17
Dockerfile.dev Normal file
View file

@ -0,0 +1,17 @@
FROM node:22-alpine@sha256:152270cd4bd094d216a84cbc3c5eb1791afb05af00b811e2f0f04bdc6c473602
WORKDIR /app
RUN corepack enable
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install --frozen-lockfile
COPY . .
ENV NODE_ENV=development
ENV NEXT_TELEMETRY_DISABLED=1
EXPOSE 3000
ENV HOSTNAME="0.0.0.0"
CMD ["/bin/ash", "entrypoint.dev.sh"]