-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (33 loc) · 1.05 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
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
# set version label
ARG BUILD_DATE
ARG VERSION
ARG RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chencichen"
# Download all dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" \
apt-get install -y \
wget \
curl \
tar \
ca-certificates \
&& apt-get clean
# add install bash script
COPY custom-cont-init.d /custom-cont-init.d/
# make executable and run bash scripts to install app
RUN chmod +x /custom-cont-init.d/init-d.sh
# global environment settings
ENV XDG_CONFIG_HOME=/home/abc
ENV HOME=/home/abc
RUN mkdir /home/abc \
&& chown -R abc:abc /home/abc \
RUN mkdir /home/abc/lolminer \
&& wget https://github.com/Lolliedieb/lolMiner-releases/releases/download/1.83/lolMiner_v1.83_Lin64.tar.gz
#Add needed nvidia environment variables for https://github.com/NVIDIA/nvidia-docker
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
# ports and volumes
EXPOSE 7862/tcp
VOLUME /config