-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (33 loc) · 1.27 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
# The New DevShop Dockerfile.
# See https://www.linuxserver.io/
# syntax=docker/dockerfile:1
FROM lsiobase/ubuntu:focal
# set version label
ARG BUILD_DATE
ARG VERSION
ARG DEVSHOP_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="DevShop"
ARG DEVSHOP_PLATFORM_REPOSITORY
ARG DEVSHOP_PLATFORM_PATH
# environment settings
ENV DEVSHOP_PLATFORM_REPOSITORY https://github.com/opendevshop/devshop.platform.git
ENV DEVSHOP_PLATFORM_PATH /app/devshop/platform
ENV DEVSHOP_PLATFORM_PREPARE_SCRIPT $DEVSHOP_PLATFORM_PATH/scripts/build/prepare-ubuntu2004.sh
ENV ANSIBLE_PLAYBOOK /app/devshop/platform/playbook.yml
# linuxserver
RUN echo Installing $DEVSHOP_VERSION from $DEVSHOP_PLATFORM_REPOSITORY
RUN \
if [ -z ${DEVSHOP_VERSION+x} ]; then \
DEVSHOP_VERSION=$(curl -sL 'https://raw.githubusercontent.com/opendevshop/devshop.platform/main/version.txt' \
| head -n 1 | cut -d ' ' -f 1); \
fi && \
apt update && apt install git -y && \
git clone $DEVSHOP_PLATFORM_REPOSITORY $DEVSHOP_PLATFORM_PATH && \
cd $DEVSHOP_PLATFORM_PATH && \
git status && \
git checkout $DEVSHOP_VERSION && \
sh $DEVSHOP_PLATFORM_PREPARE_SCRIPT && \
./scripts/ansible-galaxy-install.sh
COPY root/ /
VOLUME /config