-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopting docker file to maybe enable a quicker start of the image
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |