-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
41 lines (30 loc) · 1.07 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM node:12.18-stretch-slim AS ui
WORKDIR build
# Tests currently require London timezone
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Tests currently require London locale
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y locales && \
sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_GB.UTF-8
ENV LANG en_GB.UTF-8
# Download dependencies
COPY frontend/package.json ./
RUN npm install
# Run tests
COPY frontend ./
RUN export CI=true && \
# Use full timezone data from the full-icu package
export NODE_ICU_DATA=node_modules/full-icu && \
npm test
# Run build, with output in build/*
RUN npm run build
FROM gradle:6.5-jdk8 AS server
ARG RELEASE=false
COPY *.kts ./
COPY server ./server
COPY --from=ui build/build/. ./server/src/main/resources/buildServerResources/
RUN gradle --no-daemon test serverPlugin
RUN mv server/build/distributions/server.zip ./deployment-dashboard.zip