feat: Adds /root/project directory and sets it as the working directory in docker container.
This commit is contained in:
@@ -43,9 +43,9 @@ FROM docker.io/ubuntu:noble
|
||||
# Update base image and install needed packages.
|
||||
#
|
||||
# NOTE: NB: Installs vim as minimal text editor to use inside the container, bc
|
||||
# when I mount my home directory / use my neovim config it requires
|
||||
# neovim v11+, but generally only going to edit ansible vault files
|
||||
# inside the container.
|
||||
# when I mount my home directory / use my neovim config it requires
|
||||
# neovim v11+, but generally only going to edit ansible vault files
|
||||
# inside the container.
|
||||
RUN export DEBIAN_FRONTEND=nointeractive DEBCONF_NOINTERACTIVE_SEEN=true && \
|
||||
apt-get -q update && \
|
||||
apt-get -q dist-upgrade -y && \
|
||||
@@ -53,7 +53,6 @@ RUN export DEBIAN_FRONTEND=nointeractive DEBCONF_NOINTERACTIVE_SEEN=true && \
|
||||
ansible \
|
||||
curl \
|
||||
imagemagick \
|
||||
just \
|
||||
pandoc \
|
||||
texlive \
|
||||
texlive-xetex \
|
||||
@@ -68,11 +67,11 @@ COPY --from=build /staging/hpa /usr/local/bin
|
||||
|
||||
# Install the entrypoint script and make execuatable.
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh && mkdir /root/project
|
||||
|
||||
# Set workdir and volume mounts.
|
||||
WORKDIR /root
|
||||
VOLUME /root
|
||||
WORKDIR /root/project
|
||||
VOLUME /root/project
|
||||
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD ["--help"]
|
||||
|
||||
Reference in New Issue
Block a user