-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
35 lines (26 loc) · 814 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
29
30
31
32
33
34
35
# Specify our Python version
FROM python:3.9
# Add the NodeSource PPA
RUN echo 'Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 600' > /etc/apt/preferences.d/nodesource \
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs
# Install yarn
RUN npm install -g yarn
# Set working directory
WORKDIR /app
# Copy requirements and dependency files to the working directory
COPY package.json .
COPY yarn.lock .
# Copy the rest of the application code
COPY . .
# Install Python dependencies
WORKDIR /app/src/data
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app
# Install dependencies
RUN yarn install
# Expose the port that the app runs on
EXPOSE 8080
# Start the app in development mode
CMD ["yarn", "develop"]