0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐳 💚 Fix release build

This commit is contained in:
mathieu.brunot 2019-02-14 18:50:21 +01:00
parent 3a5368e1bd
commit e42fd1d0ce
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
2 changed files with 3 additions and 13 deletions

View file

@ -41,19 +41,14 @@ RUN apt-get update && \
git clone https://github.com/creationix/nvm.git .nvm; \
bash -c "source .nvm/nvm.sh && nvm install v7.7.1"; \
bash -c "source .nvm/nvm.sh && nvm alias default v7.7.1"; \
useradd -m -g users -s /bin/bash uxbox; \
passwd uxbox -d; \
echo "uxbox ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER uxbox
WORKDIR /home/uxbox
.nvm/nvm.sh
COPY ./scripts/lein /home/uxbox/.local/bin/lein
RUN bash -c "/home/uxbox/.local/bin/lein version"
# Copy backend source and build release
COPY ./* /home/uxbox/backend/
RUN /home/uxbox/backend/scripts/dist
RUN bash -c "/home/uxbox/backend/scripts/dist"

View file

@ -41,12 +41,7 @@ RUN apt-get update && \
git clone https://github.com/creationix/nvm.git .nvm; \
bash -c "source .nvm/nvm.sh && nvm install v7.7.1"; \
bash -c "source .nvm/nvm.sh && nvm alias default v7.7.1"; \
useradd -m -g users -s /bin/bash uxbox; \
passwd uxbox -d; \
echo "uxbox ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER uxbox
WORKDIR /home/uxbox
.nvm/nvm.sh
COPY ./scripts/lein /home/uxbox/.local/bin/lein
RUN bash -c "/home/uxbox/.local/bin/lein version"