-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
62 lines (56 loc) · 1.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
# set version label
ARG BUILD_DATE
ARG VERSION
ARG WORKBENCH_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
ARG DEBIAN_FRONTEND="noninteractive"
# title
ENV TITLE=MySQL-Workbench
RUN \
echo "**** add icon ****" && \
curl -o \
/kclient/public/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mysql-workbench-logo.png && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
gnome-keyring \
libatkmm-1.6-1v5 \
libcairomm-1.0-1v5 \
libglibmm-2.4-1v5 \
libgtk2.0-0 \
libgtkmm-3.0-1v5 \
libmysqlclient21 \
libodbc2 \
libopengl0 \
libpangomm-1.4-1v5 \
libpcrecpp0v5 \
libproj25 \
libpython3.12t64 \
libsecret-1-0 \
libsigc++-2.0-0v5 \
libssh-4 \
libvsqlitepp3v5 \
libzip4t64 && \
echo "**** install mysql workbench ****" && \
if [ -z ${WORKBENCH_VERSION+x} ]; then \
WORKBENCH_VERSION=$(curl -sL https://dev.mysql.com/downloads/workbench/ \
|awk '/<h1>MySQL Workbench/ {print $3;exit}'); \
fi && \
curl -Lf -o \
/tmp/workbench.deb \
https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community_${WORKBENCH_VERSION}-1ubuntu24.04_amd64.deb && \
dpkg -i /tmp/workbench.deb && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config