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
RUN wget "${VERSION}.zip" -O /app/code/ && \
unzip /app/code/ -d /app/code
RUN cd drone-${VERSION} && go build -o /app/code/drone-server
# copy start script
ADD /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/" ]