-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.06 KB
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
FROM python:3.10-alpine as base
RUN apk add --update --no-cache git ffmpeg ffmpeg-libs openssh curl bash libstdc++ coreutils
RUN apk add --update --no-cache curl bash ca-certificates openssl ncurses coreutils make gcc g++ libgcc linux-headers grep util-linux binutils findutils
RUN mkdir -p ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
ENV NVM_VERSION=0.39.1
ENV NODE_VERSION=18.8.0
FROM node:18.8.0-alpine as node
FROM base
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/share /usr/local/share
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin
RUN npm --version
RUN node --version
ENV PYTHONUNBUFFERED 1
ENV GIT_SSH_COMMAND ssh
COPY requirements.txt /opt/app/requirements.txt
RUN pip install --no-cache-dir -r /opt/app/requirements.txt
ADD . /opt/app
WORKDIR /opt/app
RUN cd /opt/app/react-components/ && npm install && npm run build-prod && cd /opt/app
ENV PYTHONPATH="${PYTHONPATH}:."
EXPOSE 8000
RUN chmod +x *.sh
CMD ["bash", "run.sh"]