Skip to content

Commit

Permalink
Refactor Dockerfile to set and use CATALYST_HOME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oestoer committed Dec 22, 2024
1 parent c8e4893 commit 5a16dc3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

FROM mcr.microsoft.com/devcontainers/base:buster

ENV PATH="/workspaces/AccessSystem/local/bin:${PATH}"
ENV CATALYST_HOME="/workspaces/AccessSystem"
ENV PATH="/${CATALYST_HOME}/local/bin:${PATH}"

WORKDIR /workspaces/AccessSystem

Expand Down Expand Up @@ -57,10 +58,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& cpanm Perl::LanguageServer \
&& rm -rf /var/lib/apt/lists/*

COPY cpanfile* /workspaces/AccessSystem/
COPY vendor/ /workspaces/AccessSystem/vendor/
COPY cpanfile* "${CATALYST_HOME}/"
COPY vendor/ "${CATALYST_HOME}/vendor/"

RUN chown -R swmakers:swmakers /workspaces/AccessSystem
RUN chown -R swmakers:swmakers "${CATALYST_HOME}"

USER swmakers

Expand Down

0 comments on commit 5a16dc3

Please sign in to comment.