Skip to content

Change WORKDIR from / to /usr/src/app #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ jobs:
dir='${{ matrix.directory }}'
img="perl:${dir//,/-}"
docker run "$img" cpm install -v Mojolicious
- name: COPY all to default WORKDIR
run: |
dir='${{ matrix.directory }}'
img="perl:${dir//,/-}"
mkdir -p test/lib
cat <<EOF >Dockerfile
FROM $img
COPY . .
EOF
docker build -f Dockerfile test
2 changes: 1 addition & 1 deletion 5.034.001-main,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-main,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-main-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-main-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-slim,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-slim,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.034.001-slim-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-main-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.036.001-slim-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-main-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.038.000-slim-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.38.0","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-main,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-main,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-main-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-main-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN true \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-slim,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-slim,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-slim-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion 5.039.001-slim-bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ RUN apt-get update \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl5.39.1","-de0"]
2 changes: 1 addition & 1 deletion generate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,6 @@ =head1 DESCRIPTION
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/{{cpanm_dist_name}}* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /
WORKDIR /usr/src/app

CMD ["perl{{version}}","-de0"]