mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
43 lines
699 B
Docker
43 lines
699 B
Docker
# images
|
|
FROM ubuntu:22.04
|
|
|
|
# set as non-interactive
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# copy install scripts
|
|
COPY ./install /app/install
|
|
|
|
# install common dependencies
|
|
RUN bash /app/install/deps/deps.sh
|
|
|
|
# install python
|
|
RUN bash /app/install/python/python.sh
|
|
|
|
# install golang
|
|
RUN bash /app/install/golang/golang.sh
|
|
|
|
# install node
|
|
RUN bash /app/install/node/node.sh
|
|
|
|
# install chromedriver
|
|
RUN bash /app/install/chromedriver/chromedriver.sh
|
|
|
|
# working directory
|
|
WORKDIR /app/backend
|
|
|
|
# node path
|
|
ENV NODE_PATH=/usr/lib/node_modules
|
|
|
|
# timezone environment
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
# language environment
|
|
ENV LC_ALL=C.UTF-8
|
|
ENV LANG=C.UTF-8
|
|
|
|
# frontend port
|
|
EXPOSE 8080
|
|
|
|
# backend port
|
|
EXPOSE 8000
|