mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 21:51:38 +02:00
refactor: reorganize with some changes the docker images and manage.sh
This commit is contained in:
parent
3b648f5aa5
commit
a2c41cf9a7
20 changed files with 321 additions and 198 deletions
34
docker/release.backend/Dockerfile
Normal file
34
docker/release.backend/Dockerfile
Normal file
|
@ -0,0 +1,34 @@
|
|||
FROM openjdk:8-jre
|
||||
|
||||
LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>"
|
||||
|
||||
ENV LANG=en_US.UTF-8 \
|
||||
LC_ALL=C.UTF-8
|
||||
|
||||
RUN set -ex; \
|
||||
wget https://download.clojure.org/install/linux-install-1.10.0.442.sh; \
|
||||
chmod +x linux-install-1.10.0.442.sh; \
|
||||
./linux-install-1.10.0.442.sh; \
|
||||
rm -rf linux-install-1.10.0.442.sh
|
||||
|
||||
RUN set -ex; \
|
||||
apt-get update -yq && \
|
||||
apt-get install -yq \
|
||||
git \
|
||||
imagemagick \
|
||||
webp
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
COPY ./dist /srv/uxbox
|
||||
|
||||
RUN set -ex; \
|
||||
chmod 755 /entrypoint.sh; \
|
||||
mkdir -p /srv/uxbox/resources/media
|
||||
|
||||
VOLUME /srv/uxbox/resources/public
|
||||
WORKDIR /srv/uxbox/
|
||||
|
||||
EXPOSE 6060
|
||||
|
||||
ENTRYPOINT ["sh", "/entrypoint.sh"]
|
||||
CMD ["clojure", "-m", "uxbox.main"]
|
5
docker/release.backend/entrypoint.sh
Normal file
5
docker/release.backend/entrypoint.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
echo "Setting up UXBOX Backend..."
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Add a link
Reference in a new issue