-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): Load default build args into docker build
* SRC_DIRECTORY = the name of the directory where the build is being executed * TARGET_PATH = the relative path from the root of the project to SRC_DIRECTOR * NPM_PACKAGE_NAME = the name of the package being built * NPM_PACKAGE_SCOPE = the scope of the npm package being built * CONFIG_NAME = the name of the image as defined by the configuration * CONFIG_PROJECT = the name of the docker project as defined by the config Semver: minor
- Loading branch information
1 parent
0140d66
commit 0760d5e
Showing
7 changed files
with
113 additions
and
21 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 +1 @@ | ||
public-hoist-pattern[]=*eslint* | ||
hoist=true |
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,8 +1,9 @@ | ||
# 0000-BASE | ||
FROM docker:latest | ||
ARG SRC_DIR='.' | ||
RUN apk update && apk upgrade && apk add nodejs npm | ||
WORKDIR /opt/app | ||
COPY ./package.json /opt/app/ | ||
COPY ${SRC_DIR}/package.json /opt/app/ | ||
RUN npm install | ||
COPY . /opt/app | ||
COPY ${SRC_DIR} /opt/app | ||
WORkDIR /opt/app |
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
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
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
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
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