Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Python image as the base
|
| 2 |
+
FROM python:3.9-slim
|
| 3 |
+
|
| 4 |
+
# Install dependencies for code-server
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
curl \
|
| 7 |
+
git \
|
| 8 |
+
&& curl -fsSL https://code-server.dev/install.sh | sh
|
| 9 |
+
|
| 10 |
+
# Set up working directory
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
|
| 13 |
+
# Install Python dependencies (if any)
|
| 14 |
+
COPY requirements.txt .
|
| 15 |
+
RUN pip install -r requirements.txt
|
| 16 |
+
|
| 17 |
+
# Expose port 8080 for code-server
|
| 18 |
+
EXPOSE 8080
|
| 19 |
+
|
| 20 |
+
# Start code-server
|
| 21 |
+
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]
|