Code-Server_IDE / Dockerfile
NitinBot002's picture
Upload 3 files
83e6f13 verified
raw
history blame
639 Bytes
# Dockerfile
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
wget \
git \
build-essential \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Create workspace directory
RUN mkdir -p /tmp/workspace
# Expose ports
EXPOSE 7860 8080
# Set environment variables
ENV PORT=7860
ENV CODE_SERVER_PASSWORD=huggingface123
# Run the application
CMD ["python", "app.py"]