-
Notifications
You must be signed in to change notification settings - Fork 406
DL3000
Ross Smith II edited this page Mar 9, 2023
·
3 revisions
FROM busybox
WORKDIR usr/src/app
FROM busybox
WORKDIR /usr/src/app
By using absolute paths you will not run into problems when a previous WORKDIR
instruction
changes. You also often times don't know the WORKDIR
context of your base container.
When using environment replacements.
FROM busybox
ENV foo /bar
WORKDIR ${foo} # WORKDIR /bar
WORKDIR is not recommended in GitHub actions.