Rename Dockerfile to dockerfile
Browse files- Dockerfile → dockerfile +3 -9
Dockerfile → dockerfile
RENAMED
|
@@ -14,14 +14,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 14 |
&& apt-get clean \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
# Set the working directory to the directory containing requirements.txt
|
| 21 |
-
WORKDIR /app/api # Assuming requirements.txt is in the 'api' folder
|
| 22 |
|
| 23 |
# Install Python dependencies
|
| 24 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
|
| 26 |
# Install Docker Compose
|
| 27 |
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
|
|
@@ -30,8 +27,5 @@ RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-c
|
|
| 30 |
# Expose port 80 to the outside world
|
| 31 |
EXPOSE 80
|
| 32 |
|
| 33 |
-
# Set the working directory back to the app root
|
| 34 |
-
WORKDIR /app
|
| 35 |
-
|
| 36 |
# Run the application
|
| 37 |
CMD ["docker-compose", "up"]
|
|
|
|
| 14 |
&& apt-get clean \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
+
# Copy the current directory contents into the container at /app
|
| 18 |
+
COPY . /app
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Install Python dependencies
|
| 21 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 22 |
|
| 23 |
# Install Docker Compose
|
| 24 |
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
|
|
|
|
| 27 |
# Expose port 80 to the outside world
|
| 28 |
EXPOSE 80
|
| 29 |
|
|
|
|
|
|
|
|
|
|
| 30 |
# Run the application
|
| 31 |
CMD ["docker-compose", "up"]
|