Skip to content

Commit

Permalink
quickly add development Dockerfile for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Mar 20, 2024
1 parent 094e57e commit 8eca18c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.develop
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM oven/bun:1 as bun

FROM node:18-slim AS base

FROM base AS dev
WORKDIR /app
COPY --from=bun /usr/local/bin/bun /usr/local/bin
COPY --from=bun /usr/local/bin/bunx /usr/local/bin

ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_BASE_PATH ""


RUN addgroup --system --gid 1000 nodejs
RUN adduser --system --uid 1000 nextjs
USER nextjs

EXPOSE 3000

ENV PORT 3000
# set hostname to localhost
ENV HOSTNAME "0.0.0.0"
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ version: '3'

services:
nodejs:
image: exhibition-docker
container_name: exhibition-live
build:
context: .
dockerfile: Dockerfile.develop
container_name: exhibition-dev
env_file: .env
ports:
- "3000:3000"
volumes:
- .:/app
stdin_open: true
tty: true
command: tail -f /dev/null
command: /bin/bash -c 'bun i && cd ./apps/exhibition-live && bun run dev'

0 comments on commit 8eca18c

Please sign in to comment.