-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 742 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
# Use an official Node.js runtime as the base image
FROM node:16
# Set the working directory
WORKDIR /usr/src/betterhealth/
# Install Python and pip
# Update package list and install Python and pip
RUN apt-get update && \
apt upgrade -y && \
apt-get install -y python3 python3-pip curl build-essential && \
rm -rf /var/lib/apt/lists/*
# Install Truffle globally
RUN npm install -g truffle
# Install Python dependencies
RUN pip3 install --upgrade pip
COPY backend/requirements.txt /usr/src/betterhealth/backend/requirements.txt
# Install python requirements
RUN pip3 install -r /usr/src/betterhealth/backend/requirements.txt
# Entrypoint
COPY entrypoint.sh /usr/bin/entrypoint.sh
ENTRYPOINT ["bash", "/usr/bin/entrypoint.sh"]