-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFE_Dockerfile
44 lines (35 loc) · 919 Bytes
/
FE_Dockerfile
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
41
42
43
44
# Use Debian Bookworm as the base image ©2024, Ovais Quraishi
FROM bitnami/minideb:bookworm
WORKDIR /app/
# Debian 12 thing
ENV PIP_BREAK_SYSTEM_PACKAGES 1
# Install Python3 and required packages using Apt
RUN apt-get -qqq update && \
apt-get -qqq install -y python3 python3-pip && \
apt-get clean && \
pip3 install --upgrade pip setuptools wheel --quiet --root-user-action=ignore
# Copy necessary files to /app directory
COPY requirements.txt /app/
COPY fe_run.sh /app/
COPY *.TXT /app/
COPY *.gz /app/
COPY fe_docker_install_srvc.sh /app/
# Execute installation script
RUN /app/fe_docker_install_srvc.sh
# Expose port 8000
EXPOSE 8000
# Env vars
ARG host
ENV host $host
ARG port
ENV port $port
ARG database
ENV database $database
ARG user
ENV user $user
ARG password
ENV password $password
ARG DJANGO_SECRET_KEY
ENV DJANGO_SECRET_KEY $DJANGO_SECRET_KEY
# Run ROllama FE Run!
CMD ["/app/fe_run.sh"]