-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
24 lines (15 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:latest
LABEL maintainer="lingview <official@lingview.xyz>"
RUN sed -i 's|https\?://dl-cdn.alpinelinux.org/alpine|https://mirrors.tuna.tsinghua.edu.cn/alpine|g' /etc/apk/repositories
RUN apk update
RUN apk add --no-cache openjdk21-jre wget
RUN addgroup -g 1001 -S dimstack && \
adduser -u 1001 -S dimstack -G dimstack
RUN mkdir -p /dim_stack && \
chown -R dimstack:dimstack /dim_stack
WORKDIR /dim_stack
RUN wget -O dimstack-1.0-SNAPSHOT.jar https://update.apilinks.cn/dimstack/dimstack-1.0-SNAPSHOT.jar && \
chown dimstack:dimstack dimstack-1.0-SNAPSHOT.jar
USER dimstack
ENTRYPOINT ["java", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "dimstack-1.0-SNAPSHOT.jar"]
CMD ["--server.port=2222"]