-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use an official Python runtime as a parent image
FROM python:3.12.4-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements.txt file into the container at /app
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install argcomplete and activate global completion
RUN pip install argcomplete
# Copy the rest of the working directory contents into the container at /app
COPY . .
# Register the script for auto-completion
RUN echo 'eval "$(register-python-argcomplete structkit)"' >> /etc/bash.bashrc
# Run your script when the container launches
ENTRYPOINT ["python", "structkit/main.py"]