0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/backend/Dockerfile

55 lines
1.6 KiB
Text
Raw Normal View History

2019-02-15 07:13:36 -05:00
FROM monogramm/docker-uxbox-builder:latest
ENV LEIN_ROOT=TRUE
# Copy backend source and build release
COPY . /home/uxbox/backend
RUN set -ex; \
cd backend; \
2019-02-16 10:50:39 -05:00
rm -f Dockerfile; \
bash -c "/home/uxbox/backend/scripts/dist.sh"
# Once application has been built, prepare production image
FROM openjdk:8-jre-alpine
LABEL maintainer="mathieu.brunot at monogramm dot io"
# Add uxbox as provided by builder
COPY --from=0 /home/uxbox/backend/dist/uxbox-backend.jar /srv/uxbox/app.jar
2019-02-16 10:50:39 -05:00
COPY --from=0 /home/uxbox/backend/docker-entrypoint.sh /entrypoint.sh
2019-02-15 18:59:31 -05:00
ENV UXBOX_HTTP_SERVER_DEBUG=false \
UXBOX_DATABASE_USERNAME=uxbox \
UXBOX_DATABASE_PASSWORD=youshouldoverwritethiswithsomethingelse \
UXBOX_DATABASE_NAME=uxbox \
UXBOX_DATABASE_SERVER=localhost \
UXBOX_DATABASE_PORT=5432 \
UXBOX_EMAIL_REPLY_TO=no-reply@uxbox.io \
UXBOX_EMAIL_FROM=no-reply@uxbox.io \
UXBOX_SMTP_HOST=localhost \
UXBOX_SMTP_PORT=25 \
UXBOX_SMTP_USER=uxbox \
UXBOX_SMTP_PASSWORD=youshouldoverwritethiswithsomethingelse \
UXBOX_SMTP_SSL=false \
UXBOX_SMTP_TLS=false \
UXBOX_SMTP_ENABLED=false \
# WARNING: this is a default secret key and
# it should be overwritten in production env.
UXBOX_SECRET=5qjiAn-QUpawUNqGP10UZKklSqbLKcdGY3sJpq0UUACpVXGg2HOFJCBejDWVHskhRyp7iHb4rjOLXX2ZjF-5cw
2019-02-15 22:20:11 -05:00
RUN set -ex; \
chmod 755 /entrypoint.sh; \
mkdir -p /srv/uxbox/resources/public/media; \
mkdir -p /srv/uxbox/resources/public/static;
VOLUME /srv/uxbox/resources/public
WORKDIR /srv/uxbox/
EXPOSE 6060
ENTRYPOINT ["sh", "/entrypoint.sh"]
CMD ["java", "-jar", "app.jar"]