-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile.dev
44 lines (37 loc) · 1.24 KB
/
Dockerfile.dev
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
# Container for developing Sparrow Reference Web App locally
# Used by VS Code Dev Container (devcontainer.json)
# Define global arguments
ARG DEBIAN_FRONTEND="noninteractive"
# Base Image
FROM node:16.14-slim
# Import global arguments
ARG DEBIAN_FRONTEND
# Execution Environment
RUN ["dash", "-c", "\
apt-get update --quiet \
&& apt-get install --assume-yes --no-install-recommends --quiet \
bash \
ca-certificates `# for yarn install from git` \
git \
libasound2 `# for cypress` \
libgbm-dev `# for cypress` \
libgconf-2-4 `# for cypress` \
libgtk2.0-0 `# for cypress` \
libgtk-3-0 `# for cypress` \
libnotify-dev `# for cypress` \
libnss3 `# for cypress` \
libxss1 `# for cypress` \
libxtst6 `# for cypress` \
nano `# for git commit --amend` \
netcat `# for dev.db.ephemeral.sh and friends` \
ssh `# for git push` \
xauth `# for cypress` \
xvfb `# for cypress` \
&& apt-get clean \
&& apt-get purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
"]
# Runtime Environment
WORKDIR /var/www/
# Set default launch command
CMD ["bash"]