-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
34 lines (25 loc) · 622 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
FROM python:3
# Create directories
RUN mkdir -p /app/backend
RUN mkdir -p /app/frontend
WORKDIR /app
COPY images /app/images
# Install NPM
RUN apt-get update
RUN apt-get install -y npm
# Copy and install front-end
WORKDIR /app/frontend
COPY front-end/. /app/frontend
RUN npm install npm@latest -g
RUN npm install nuxt -g
RUN npm install
RUN nuxt build
# Install Python dependencies
WORKDIR /app
COPY requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
# Copy back-end code and images
COPY back-end/. /app/backend
WORKDIR /app
COPY docker/entrypoint.sh /app/
ENTRYPOINT ["/app/entrypoint.sh"]