Initial Entry
This commit is contained in:
parent
a40dc7dfff
commit
9b67604ce4
20
dev-env/Dockerfile
Normal file
20
dev-env/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM node:20
|
||||
|
||||
# Basic tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
vim \
|
||||
htop \
|
||||
openssh-server \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set up workspace
|
||||
WORKDIR /workspace
|
||||
|
||||
# Optional: Install VS Code Server (commented by default)
|
||||
# RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
|
||||
# Default shell
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
15
dev-env/docker-compose.yml
Normal file
15
dev-env/docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
nextjs-dev:
|
||||
build: ./dev-env
|
||||
container_name: nextjs-dev
|
||||
networks:
|
||||
LocalNet:
|
||||
ipv4_address: '172.17.17.73'
|
||||
ports:
|
||||
- "2222:22" # SSH access for VS Code Server or remote shell
|
||||
- "3001:3000" # Next.js dev preview
|
||||
volumes:
|
||||
- /storage/ospfcost:/workspace
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
restart: unless-stopped
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user