2019-11-14 12:50:37 +00:00
|
|
|
#When you are building, name it appsmith-server which is how it is referenced in docker-compose.yml
|
|
|
|
|
|
|
|
|
|
FROM adoptopenjdk/openjdk11:alpine-jre
|
|
|
|
|
|
|
|
|
|
LABEL maintainer="tech@appsmith.com"
|
|
|
|
|
|
|
|
|
|
VOLUME /tmp
|
|
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
2021-01-12 12:45:15 +00:00
|
|
|
ARG JAR_FILE=./appsmith-server/target/server-*.jar
|
2019-11-14 12:50:37 +00:00
|
|
|
ARG PLUGIN_JARS=./appsmith-plugins/*/target/*.jar
|
2020-11-19 03:24:03 +00:00
|
|
|
ARG APPSMITH_SEGMENT_CE_KEY
|
|
|
|
|
ENV APPSMITH_SEGMENT_CE_KEY=${APPSMITH_SEGMENT_CE_KEY}
|
2019-11-14 12:50:37 +00:00
|
|
|
|
|
|
|
|
#Create the plugins directory
|
|
|
|
|
RUN mkdir -p /plugins
|
|
|
|
|
|
|
|
|
|
#Add the jar to the container. Always keep this at the end. This is to ensure that all the things that can be taken
|
|
|
|
|
#care of via the cache happens. The following statement would lead to copy because of change in hash value
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
COPY ${JAR_FILE} server.jar
|
|
|
|
|
COPY ${PLUGIN_JARS} /plugins/
|
|
|
|
|
|
|
|
|
|
#Run the jar
|
|
|
|
|
ENTRYPOINT ["/bin/sh", "-c" , "/entrypoint.sh"]
|