Skip to content

Commit 7ee6607

Browse files
committed
Docker for development
1 parent 122d16b commit 7ee6607

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Dockerfile.dev

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:alpine
2+
3+
WORKDIR /usr/app
4+
5+
ENV NEXT_PUBLIC_BACKEND_URL=http://localhost:5001
6+
ENV NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000
7+
ENV NODE_ENV=development
8+
ENV NEXT_PUBLIC_BASE_PATH="/portal"
9+
ENV NEXTAUTH_URL=https://localhost:5001/portal/api/auth
10+
11+
COPY package.json yarn.lock ./
12+
RUN yarn install
13+
14+
COPY . .
15+
16+
EXPOSE 3000
17+
18+
CMD ["yarn", "dev"]

docker-compose.dev.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "3.8"
2+
3+
services:
4+
app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile.dev
8+
volumes:
9+
- .:/usr/app
10+
- /usr/app/node_modules
11+
ports:
12+
- "3000:3000"
13+
env_file:
14+
- .env
15+
command: yarn dev

0 commit comments

Comments
 (0)