Skip to content

Commit

Permalink
updated Dockerfile to use ubuntu as a base docker image instead of py…
Browse files Browse the repository at this point in the history
…thon3.9-slim
  • Loading branch information
Bioblaze committed Oct 13, 2024
1 parent 54aeb8e commit ac63f59
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# Stage 1: Build documentation using Sphinx
FROM python:3.9-slim AS sphinx-build
FROM ubuntu:22.04 AS sphinx-build

# Set working directory
WORKDIR /docs

# Copy requirements.txt and install dependencies
COPY requirements.txt .

# Install pip dependencies
RUN pip install -r requirements.txt

# Install any additional system dependencies
# Install necessary dependencies
RUN apt-get update && apt-get install -y \
python3-pip \
make \
parallel \
libwebp7 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements.txt and install pip dependencies
COPY requirements.txt .

RUN pip3 install -r requirements.txt

# Copy the rest of the documentation files
COPY . .

Expand All @@ -29,8 +30,8 @@ FROM nginx:alpine
# Copy built HTML documentation from the previous stage
COPY --from=sphinx-build /docs/build/html /usr/share/nginx/html

# Expose port 8080 for serving
EXPOSE 8080
# Expose port 80 for serving
EXPOSE 80

# Start Nginx
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit ac63f59

Please sign in to comment.