-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from unknown91tech/docker-added
added the docker file
- Loading branch information
Showing
6 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.next |
Submodule DesignDeck
deleted from
817c99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:20-alpine | ||
|
||
WORKDIR /nextapp | ||
|
||
COPY package* . | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm" , "run" , "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '3.8' | ||
|
||
services: | ||
web: | ||
image: nextapp | ||
build: | ||
context: . # Use the current directory | ||
dockerfile: Dockerfile | ||
command: sh -c "npm i && npm run dev" | ||
restart: always # Specify the Dockerfile | ||
ports: | ||
- "3000:3000" # Map port 3000 | ||
volumes: | ||
- ./app:/nextapp/app | ||
- ./components:/nextapp/components | ||
- ./constants:/nextapp/constants | ||
- ./hooks:/nextapp/hooks | ||
- ./lib:/nextapp/lib | ||
- ./public:/nextapp/public | ||
- ./types:/nextapp/types # Bind mount the current directory to /nextapp in the container | ||
environment: | ||
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY: your_api_key_goes_here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters