File size: 491 Bytes
fd9a8d6
b4af461
54c9a40
 
4926f2b
 
c7df753
4926f2b
 
9bbabfe
 
fd9a8d6
75c10b1
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM ubuntu:22.04
ARG app
WORKDIR /app
COPY . .
RUN apt-get update && \
  apt-get install -y curl jq tar aria2 && \
  curl -sL https://api.github.com/repos/${app}-org/${app}/releases/latest | jq -r '.assets[] | select(.name | test("linux-amd64.tar.gz$")) | .browser_download_url' | xargs curl -L | tar -zxvf - -C ./ && \
  chmod +x start.sh && mkdir -p local && chmod 777 local && \
  mkdir -p data && chmod 777 data
COPY config.json data/config.json
RUN chmod +x  ${app}

CMD ["./start.sh"]