forked from IEEE-NITK/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 747 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
25
26
27
28
29
30
31
32
33
# IMPORTANT: This Dockerfile will be used by livecycle to
# generate preview environments for pull requests.
FROM python:3.11.1-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Create the working directory
RUN mkdir /corpus
WORKDIR /corpus
# Install dependencies
RUN apt-get update && apt-get install -y gcc libpq-dev sqlite3
# Install Python dependencies
COPY corpus/requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir python-dotenv==1.0.0
# Set environment variables
ENV LIVECYCLE 1
COPY env.example .env
# Copy the application
COPY corpus/ .
RUN chmod +x start_dev.sh
EXPOSE 8000
ENTRYPOINT [ "/corpus/start_dev.sh" ]