feat:删除开发docker文件
This commit is contained in:
parent
c554bd0c2f
commit
329610088d
|
|
@ -1,18 +0,0 @@
|
||||||
FROM node:18-alpine
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy package files
|
|
||||||
COPY package*.json ./
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Copy source code
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Expose port 3000 for development server
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
# Start development server
|
|
||||||
CMD ["npm", "start"]
|
|
||||||
|
|
@ -17,25 +17,6 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
# Development service with hot reloading
|
|
||||||
frontend-dev:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
volumes:
|
|
||||||
- .:/app
|
|
||||||
- /app/node_modules
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=development
|
|
||||||
# Add your development environment variables here
|
|
||||||
# - REACT_APP_API_URL=http://localhost:8000
|
|
||||||
command: npm start
|
|
||||||
networks:
|
|
||||||
- app-network
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue