You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
744 B

FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
RUN mkdir -p /app/code /app/data
WORKDIR /app/code
# ffmpeg required
RUN apt-get -y update && \
apt-get update && \
apt -y install ffmpeg x264 x265 && \
rm -rf /var/cache/apt /var/lib/apt/lists
ENV VERSION=2.8.0
RUN wget "https://github.com/harness/drone/archive/refs/tags/v${VERSION}.zip" -O /app/code/drone.zip && \
unzip /app/code/drone.zip -d /app/code
RUN cd drone-${VERSION} && go build -o /app/code/drone-server github.com/drone/drone/cmd/drone-server
# copy start script
ADD start.sh /app/code/
RUN chmod +x /app/code/drone-server
ADD .env /app/data/
RUN ln -s /app/data/.env /app/code/.env
CMD [ "/app/code/start.sh" ]