-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from bcgov/feature/uploadEngine
Swap out S3 upload library and general infrastructure updates
- Loading branch information
Showing
10 changed files
with
10,306 additions
and
6,420 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
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,12 +1,30 @@ | ||
FROM docker.io/node:16.15.0-alpine | ||
# FROM docker.io/node:16.15.0-alpine # Last known working alpine image | ||
|
||
ARG APP_ROOT=/opt/app-root/src | ||
ENV NO_UPDATE_NOTIFIER=true \ | ||
APP_PORT=3000 | ||
# | ||
# Build the application | ||
# | ||
FROM registry.access.redhat.com/ubi9/nodejs-18:1-17 as builder | ||
|
||
COPY . ${APP_ROOT} | ||
WORKDIR ${APP_ROOT}/app | ||
ENV NO_UPDATE_NOTIFIER=true | ||
|
||
USER 0 | ||
COPY . /tmp/src | ||
WORKDIR /tmp/src/app | ||
RUN chown -R 1001:0 /tmp/src | ||
|
||
USER 1001 | ||
RUN npm ci | ||
|
||
# | ||
# Create the final container image | ||
# | ||
FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:1-18 | ||
|
||
ENV APP_PORT=3000 \ | ||
NO_UPDATE_NOTIFIER=true | ||
|
||
COPY --from=builder /tmp/src ${HOME} | ||
WORKDIR ${HOME}/app | ||
|
||
EXPOSE ${APP_PORT} | ||
CMD ["npm", "run", "start"] |
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
Oops, something went wrong.