We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122d16b commit 7ee6607Copy full SHA for 7ee6607
2 files changed
Dockerfile.dev
@@ -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
@@ -0,0 +1,15 @@
+version: "3.8"
+services:
+ app:
+ build:
+ context: .
+ dockerfile: Dockerfile.dev
+ volumes:
+ - .:/usr/app
+ - /usr/app/node_modules
+ ports:
+ - "3000:3000"
+ env_file:
+ - .env
+ command: yarn dev
0 commit comments