-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
33 lines (26 loc) · 1.12 KB
/
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
# syntax = docker/dockerfile:1
################ Settings ################
# Choose your base image and tag
# Alpine Based Python Image
FROM python:3.12-alpine
# Debian Based Python Image
# FROM python:3.12-bullseye
################ Settings ################
# Set python to unbuffered mode
ENV PYTHONUNBUFFERED=1
# Install any additional requirements
# EG: Use bash for alpine images / install some build tools and cryptography dependencies
RUN apk update && apk --no-cache add bash build-base libffi-dev
# Set the working directory to /app
WORKDIR /app/
# Install Core Cave App Python Requirements
COPY ./requirements.txt /app/requirements.txt
COPY ./utils/extra_requirements.txt /app/utils/extra_requirements.txt
RUN pip install -r /app/requirements.txt
# Install Cave API Python Requirements
COPY ./cave_api/requirements.txt /app/cave_api/requirements.txt
RUN pip install -r /app/cave_api/requirements.txt
# Copy the current directory contents into the container at /app
COPY cave_api/pyproject.toml /app/cave_api/pyproject.toml
COPY cave_api/cave_api/__init__.py /app/cave_api/cave_api/__init__.py
RUN pip install -e /app/cave_api