forked from TreyWW/MyFinances
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (25 loc) · 792 Bytes
/
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
# Dockerfile
FROM python:3.12-alpine
# Set the working directory
WORKDIR /MyFinances
# Copy the project files
COPY . .
#COPY ../../requirements.gh_actions.txt requirements.txt
# Install dependencies
RUN apk add --update mariadb-connector-c-dev
RUN apk add --no-cache --virtual .build-deps py-pip musl-dev gcc mariadb-dev
RUN pip install --upgrade pip
RUN pip install mysql
RUN apk add --no-cache git
CMD ["git","--version"]
RUN pip install mariadb
RUN pip install mysqlclient
RUN pip install -r requirements.txt --upgrade
# Set the entrypoint
#COPY ../scripts /infrastructure/scripts/
RUN chmod +x infrastructure/backend/scripts/*
RUN chmod +x infrastructure/backend/scripts/tests/*
ENTRYPOINT ["sh", "infrastructure/backend/scripts/entrypoint.sh"]
# Expose ports
EXPOSE 10012
EXPOSE 9012