-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5903e3e
commit 8f9c91b
Showing
4 changed files
with
39 additions
and
1 deletion.
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
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,18 @@ | ||
version: '3.8' | ||
|
||
services: | ||
frontend: | ||
build: | ||
context: ./frontend | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ./frontend:/app | ||
- node_modules_volume:/app/node_modules | ||
command: sh -c "pnpm run start" | ||
ports: | ||
- "5173:5173" | ||
environment: | ||
- CHOKIDAR_USEPOLLING=true | ||
- NODE_ENV=development | ||
volumes: | ||
node_modules_volume: |
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,14 @@ | ||
# Use official Node.js image as the base image | ||
FROM node:20.13.1 | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy package.json and pnpm-lock.yaml files | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
# Install pnpm | ||
RUN npm install -g pnpm | ||
|
||
# Install dependencies | ||
RUN pnpm install |
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