mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
52 lines
825 B
Docker
52 lines
825 B
Docker
# images
|
|
FROM ubuntu:22.04
|
|
|
|
# set as non-interactive
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# copy install scripts
|
|
COPY ./install /app/install
|
|
|
|
# install deps
|
|
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 java
|
|
#RUN bash /app/install/java/java.sh
|
|
|
|
# install chromedriver
|
|
RUN bash /app/install/chromedriver/chromedriver.sh
|
|
|
|
# install rod
|
|
RUN bash /app/install/rod/rod.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
|
|
|
|
# goproxy
|
|
ENV GOPROXY goproxy.io,direct
|
|
|
|
# frontend port
|
|
EXPOSE 8080
|
|
|
|
# backend port
|
|
EXPOSE 8000
|