mirror of
https://github.com/penpot/penpot.git
synced 2026-03-05 17:51:17 +00:00
🐳 💚 Fix release build
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user