forked from rancher/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dapper
27 lines (23 loc) · 1.15 KB
/
Dockerfile.dapper
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
FROM debian:stretch
RUN apt-get -qq update \
&& apt-get install -y curl gnupg2 apt-transport-https \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends \
git ca-certificates nodejs yarn \
hicolor-icon-theme g++ google-chrome-stable \
&& update-alternatives --install /usr/bin/node node /usr/bin/nodejs 12 \
&& yarn config set cache-folder /var/cache/yarn \
&& rm -rf /var/lib/apt/lists/*
ENV DAPPER_RUN_ARGS --privileged -v npm-cache:/var/cache/npm
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME BUILD_LATEST
ENV DAPPER_SOURCE /tmp/ui
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
WORKDIR ${DAPPER_SOURCE}
RUN mkdir dist
ENTRYPOINT ["./scripts/entry.sh"]
CMD ["ci"]