forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
73 lines (63 loc) · 2.06 KB
/
Dockerfile
File metadata and controls
73 lines (63 loc) · 2.06 KB
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
63
64
65
66
67
68
69
70
71
72
73
FROM ubuntu:22.04
# Evitar prompts interactivos
ENV DEBIAN_FRONTEND=noninteractive
ENV DISPLAY=:99
# Instalar dependencias base
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
libx11-dev \
libx11-xcb-dev \
libxkbfile-dev \
libsecret-1-dev \
libkrb5-dev \
git \
curl \
wget \
zip \
unzip \
p7zip-full \
xvfb \
wine \
wine64 \
wine32 \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/*
# Instalar Node.js 22
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Instalar GitHub CLI
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \
dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \
tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update \
&& apt-get install -y gh \
&& rm -rf /var/lib/apt/lists/*
# Configurar Wine
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y wine32 \
&& rm -rf /var/lib/apt/lists/*
# Descargar e instalar Inno Setup
RUN mkdir -p /tmp/innosetup \
&& cd /tmp/innosetup \
&& wget -q https://jrsoftware.org/download.php/is.exe -O innosetup.exe \
&& Xvfb :99 -screen 0 1024x768x16 & \
sleep 2 \
&& wine innosetup.exe /VERYSILENT /SUPPRESSMSGBOXES \
&& sleep 5 \
&& killall Xvfb || true \
&& rm -rf /tmp/innosetup
# Configurar directorio de trabajo
WORKDIR /workspace
# Configurar NODE_OPTIONS para 30GB RAM (ajusta segun tu sistema)
ENV NODE_OPTIONS="--max-old-space-size=30720"
# Script de inicio que configura Xvfb y el wrapper de Inno Setup
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["/bin/bash"]