Skip to content

Commit

Permalink
Adopting docker file to maybe enable a quicker start of the image
Browse files Browse the repository at this point in the history
  • Loading branch information
iptizer committed Jun 2, 2024
1 parent ad6b10a commit 16ec187
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM jetpackio/devbox:latest

# Installing your devbox project
WORKDIR /code
WORKDIR /workspace
USER root:root
RUN mkdir -p /code && chown ${DEVBOX_USER}:${DEVBOX_USER} /code
RUN mkdir -p /workspace && chown ${DEVBOX_USER}:${DEVBOX_USER} /workspace
USER ${DEVBOX_USER}:${DEVBOX_USER}
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.json devbox.json
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.lock devbox.lock


RUN devbox shell --init --config /workspace/devbox.json \
echo 'source /workspace/.devbox/bin/activate' >> /workspace/.bashrc

RUN devbox run -- echo "Installed Packages."

CMD ["devbox", "shell"]
CMD ["bash"]

0 comments on commit 16ec187

Please sign in to comment.