-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile-cli
43 lines (33 loc) · 1.13 KB
/
Dockerfile-cli
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
42
43
FROM python:3.9.6-bullseye
# Add docker entrypoint script
ADD docker-entrypoint-cli.sh /
RUN chmod +x /docker-entrypoint-cli.sh
# Install dependencies
RUN apt-get update \
&& apt-get install -y wget nano
# Create directories
RUN mkdir -p /home
# Install mediainfo
RUN apt-get install -y mediainfo
# Install pwsh
RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y powershell \
&& rm -rf /var/lib/apt/lists/*
# Install pwsh modules
RUN pwsh -c "Set-PSRepository 'PSGallery' -InstallationPolicy Trusted" \
&& pwsh -c "Install-Module Javinizer"
# Install python modules
RUN pip3 install pillow \
google_trans_new \
googletrans==4.0.0rc1 \
requests
# Clean up
#RUN apt-get purge unzip \
# wget \
# && apt-get autoremove
# Create symlink to module settings file
RUN pwsh -c "ln -s (Join-Path (Get-InstalledModule Javinizer).InstalledLocation -ChildPath jvSettings.json) /home/jvSettings.json"
EXPOSE 8600
ENTRYPOINT ["/docker-entrypoint-cli.sh"]