forked from Miladeb77/Y2_Genepanel_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Declare the base image with the correct Python version
FROM python:3.9
# Set the working directory inside the container
WORKDIR /app
# Copy the entire project directory into the container's /app directory
COPY . /app
# Create a logging directory
RUN mkdir -p /usr/local/share/logs
# Update apt-get and install apt-managed software
RUN apt update && apt -y install \
git \
sqlite3 \
libsqlite3-dev \
gzip
# Upgrade pip
RUN pip install --upgrade pip
# Install dependencies from requirements.txt
RUN pip install .
# Copy configuration files to the container's home directory
COPY configuration/build_panelApp_database_config.json /root/.genepanel_config
# Ensure database folders exist and create them
RUN mkdir -p /app/databases /app/archive_databases /app/output
# Expose a port (if required for future networking needs)
EXPOSE 8080
# Set the default working directory for the container
WORKDIR /app
# Remove the fixed ENTRYPOINT
# Let the command to execute be specified explicitly when running the container
CMD ["tail", "-f", "/dev/null"]