forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.it
37 lines (26 loc) · 1.08 KB
/
Dockerfile.it
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
FROM ubuntu:latest
LABEL org.opencontainers.image.source="https://github.com/markphelps/flipt"
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
apt-get update && \
apt-get install -y \
sudo tzdata bats curl wget jq gnupg
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get update && \
apt-get install -y nodejs
RUN npm install -g yarn
# specify location of to be installed browsers
# so that our IT can find them at runtime
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN mkdir ${PLAYWRIGHT_BROWSERS_PATH}
# need to install browser and deps for playwright
# using this hack because of npm junk: https://github.com/microsoft/playwright/issues/9858#issuecomment-954311179
RUN mkdir /tmp/pwt && cd /tmp/pwt && \
npm install @playwright/test && \
npx playwright install chromium --with-deps && \
chmod -R 777 /ms-playwright
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
EXPOSE 8080