据我了解,Clojure中的特殊形式是构建基块,将用于构建其余语言功能。如我所见,WRT let被定义为宏here。那么这是一种特殊形式吗?
答案 0 :(得分:2)
严格来说,FROM maven:3.6-jdk-8 as maven
WORKDIR /app
COPY ./pom.xml ./pom.xml
RUN mvn dependency:go-offline -B
COPY ./src ./src
# TODO: jollof-* should be replaced with the proper prefix
RUN mvn package && cp target/jollof-*.jar app.jar
# Rely on Docker's multi-stage build to get a smaller image based on JRE
FROM openjdk:8-jre-alpine
LABEL maintainer="xxxxx@xxx.com"
WORKDIR /app
COPY --from=maven /app/app.jar ./app.jar
# VOLUME /tmp # optional
EXPOSE 8080 # also optional
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]
只是let
(这是一种特殊形式)的前端。 let*
添加了参数检查和解构,但是出于所有其他目的(从程序员的角度来看),它是一种特殊形式。