2021-02-18 02:00:03 +01:00
|
|
|
FROM clojure:openjdk-16-alpine AS builder
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY project.clj /app
|
|
|
|
RUN lein deps
|
|
|
|
COPY . /app
|
|
|
|
RUN mv "$(lein uberjar | sed -n 's/^Created \(.*standalone\.jar\)/\1/p')" app-standalone.jar
|
2016-02-15 22:20:23 +01:00
|
|
|
|
2021-02-18 02:00:03 +01:00
|
|
|
FROM openjdk:16
|
|
|
|
RUN mkdir -p /app/public
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/app-standalone.jar /app/bdm.jar
|
|
|
|
# Make sure you mount the public folder
|
|
|
|
CMD java -jar bdm.jar $TYPE
|