-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
25 lines (18 loc) · 824 Bytes
/
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
FROM node:20.5.0-slim
RUN apt-get update \
&& apt-get install -y curl unzip wget gnupg \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y git libxshmfence-dev google-chrome-stable --no-install-recommends \
&& curl -fsSL https://deno.land/x/install/install.sh | sh \
&& echo 'export DENO_INSTALL="/root/.deno"; export PATH="$DENO_INSTALL/bin:$PATH"' >> ~/.bashrc
ENV DENO_INSTALL=/root/.deno PATH=${PATH}:/root/.deno/bin
WORKDIR /code/
ADD package.json package-lock.json /code/
RUN npm install
ADD shims /code/shims
ADD vendor /code/vendor
ADD test /code/test
ADD . /code/
ENTRYPOINT "/bin/bash"