forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.it
34 lines (24 loc) · 1.02 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
FROM ubuntu:focal
LABEL org.opencontainers.image.source="https://github.com/flipt-io/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_18.x | bash
RUN apt-get update && \
apt-get install -y nodejs
# 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 && \
npx playwright install chromium --with-deps && \
chmod -R 777 /ms-playwright
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
EXPOSE 8079