-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile.vxdesign
More file actions
82 lines (71 loc) · 1.73 KB
/
Copy pathDockerfile.vxdesign
File metadata and controls
82 lines (71 loc) · 1.73 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
74
75
76
77
78
79
80
81
82
# Docker Image for VxDesign deployments.
# [TODO] Pull from votingworks/cimg-debian12 instead.
# [Update] Attempted the switch and ran into an issue with having to re-push the
# CI image separately to the Heroku-hosted registry (can't point to Dockerhub),
# which complicates the process a bit. Worth revisiting later, but will depend
# on the plan for https://github.com/votingworks/vxsuite/issues/6261.
FROM bitnami/minideb:bookworm
# Essentials
RUN apt update && apt install -y --no-install-recommends \
ca-certificates \
curl \
git \
ssh \
sudo \
tar \
xz-utils \
zip \
unzip
# VxSuite transitive deps:
RUN sudo apt update && apt install -y --no-install-recommends \
build-essential \
g++ \
gcc \
ghostscript \
libasound2 \
libatspi2.0-0 \
libcairo2-dev \
libdrm2\
libgbm1 \
libgif-dev \
libglib2.0-bin \
libgtk-3-0 \
libjpeg-dev \
libnotify4 \
libpango1.0-dev \
libpcsclite-dev \
libpcsclite1 \
libpixman-1-dev \
libpng-dev \
libsane \
libsane-common \
libsane-hpaio \
libsane1 \
libudev-dev \
libusb-1.0-0-dev \
libxss1 \
libxtst6 \
linux-kbuild-6.1 \
make \
pkg-config \
poppler-utils \
python3
WORKDIR /vx/code/vxsuite
COPY .nvmrc package.json ./
ARG TARGETARCH
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash && \
. ~/.bashrc && \
nvm install && \
. ~/.bashrc && \
node -v && \
npm i -g pnpm@9.15.9 && \
pnpm -v
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.93.0 -y
COPY . .
RUN . ~/.bashrc && . ~/.cargo/env && pnpm install --frozen-lockfile
ENV NODE_ENV="production"
RUN . ~/.bashrc && . ~/.cargo/env && pnpm -dir=apps/design/frontend build:prod
EXPOSE 80
EXPOSE 3000
EXPOSE 3001
ENV HOME="/root"