mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
update Dockerfile
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -1,29 +1,12 @@
|
||||
# Use the official Python image as a base
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
# Install RenderCV:
|
||||
RUN pip install rendercv
|
||||
|
||||
# Copy the requirements file and any other necessary files
|
||||
COPY pyproject.toml ./
|
||||
# Create a directory for the app
|
||||
WORKDIR /rendercv
|
||||
|
||||
# Install Hatch and any dependencies
|
||||
RUN pip install --no-cache-dir hatch
|
||||
# Set the entrypoint to /bin/sh instead of Python
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
# Copy the rest of your application code, including the .gitmodules file
|
||||
COPY . .
|
||||
|
||||
# Install git for the submodules
|
||||
RUN apt update && apt install git -y
|
||||
|
||||
# Initialize and update submodules
|
||||
RUN git submodule update --init --recursive
|
||||
|
||||
# Build the package using Hatch
|
||||
RUN hatch build
|
||||
|
||||
# Install the built package
|
||||
RUN pip install dist/*.whl
|
||||
|
||||
# Change to data directory
|
||||
WORKDIR /data
|
||||
Reference in New Issue
Block a user