This repository was archived by the owner on Feb 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (28 loc) · 1.32 KB
/
Copy pathDockerfile
File metadata and controls
31 lines (28 loc) · 1.32 KB
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
#
# Dockerfile
# =============================================================================
# Customers API Lite microservice prototype (Clojure port). Version 0.3.0
# =============================================================================
# A daemon written in Clojure, designed and intended to be run
# as a microservice, implementing a special Customers API prototype
# with a smart yet simplified data scheme.
# =============================================================================
# (See the LICENSE file at the top of the source tree.)
#
# Note: Since it is supposed that all-in-one JAR bundle of the microservice
# was already built previously and can be run in a container as is,
# there is no need to use official Clojure Docker images
# (https://hub.docker.com/_/clojure).
# Instead, it is recommended to use any of JRE-only flavors of slim
# (e.g. Alpine-based) Docker images.
FROM azul/zulu-openjdk-alpine:21-jre-headless-latest
USER daemon
WORKDIR var/tmp
COPY target/uberjar/customers-api-lite-0.3.0.jar api-lite/api-lite.jar
COPY data/db api-lite/data/db/
WORKDIR api-lite
USER root
RUN ["chown", "-R", "daemon:daemon", "."]
USER daemon
ENTRYPOINT ["java", "-jar", "api-lite.jar"]
# vim:set nu ts=4 sw=4: