-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (32 loc) · 965 Bytes
/
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
###################
# STAGE 1: builder
###################
FROM node:18-bullseye as builder
WORKDIR /home/node
RUN apt-get update && apt-get upgrade -y && apt-get install openjdk-11-jdk curl git -y \
&& curl -O https://download.clojure.org/install/linux-install-1.11.1.1262.sh \
&& chmod +x linux-install-1.11.1.1262.sh \
&& ./linux-install-1.11.1.1262.sh
COPY . .
RUN clojure -T:build uberjar
# ###################
# # STAGE 2: runner
# ###################
FROM eclipse-temurin:11-jre-alpine as runner
ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
# dependencies
# install google-chrome
# Installs latest Chromium (100) package.
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont \
nodejs \
npm
RUN npm install -g "single-file-cli"
WORKDIR /app
COPY --from=builder /home/node/target/ubinote.jar /app/
CMD ["java", "-jar", "/app/ubinote.jar"]