-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
15 lines (14 loc) · 952 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM node:8-stretch-slim as builder
RUN apt-get update && apt-get install -y git && git clone https://github.com/wycliffeassociates/translationExchange /translationExchange && git clone https://github.com/wycliffeassociates/tE-backend /tE-backend
WORKDIR /translationExchange
RUN npm link cross-env && npm install --production && npm run build
FROM python:3.7-slim-stretch
RUN echo "deb http://httpredir.debian.org/debian jessie-backports main non-free\n" >> /etc/apt/sources.list
RUN echo "deb-src http://httpredir.debian.org/debian jessie-backports main non-free\n" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y ffmpeg
COPY . /
COPY --from=builder /tE-backend /var/www/html/tE-backend
COPY --from=builder /translationExchange /var/www/html/tE-backend/tRecorderApi/frontend
RUN pip install -r /requirements.txt
VOLUME [ "/var/www/html/tE-backend/tRecorderApi/media" ]
WORKDIR /var/www/html/tE-backend/tRecorderApi