-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/ojoi-application-additional-state
- Loading branch information
Showing
7 changed files
with
567 additions
and
144 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,30 +1,31 @@ | ||
ARG DOCKER_IMAGE_REGISTRY=public.ecr.aws | ||
ARG NODE_IMAGE_TAG | ||
FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} as runner | ||
FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} AS runner | ||
|
||
RUN apk add postgresql-client bash | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache postgresql-client bash | ||
|
||
FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} as build | ||
FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} AS build | ||
WORKDIR /app/infra | ||
|
||
ENV NODE_OPTIONS=--openssl-legacy-provider | ||
|
||
ADD infra/package.json infra/yarn.lock /app/infra/ | ||
COPY infra/package.json infra/yarn.lock /app/infra/ | ||
COPY .yarn/ ./.yarn | ||
WORKDIR /app/infra | ||
RUN yarn install --immutable | ||
|
||
ADD infra/ /app/infra/ | ||
ADD apps /app/apps/ | ||
ADD libs /app/libs/ | ||
COPY infra/ /app/infra/ | ||
COPY apps /app/apps/ | ||
COPY libs /app/libs/ | ||
|
||
RUN ./node_modules/.bin/ncc build src/feature-env.ts -o /app/dist/feature-env | ||
RUN ./node_modules/.bin/ncc build src/secrets.ts -o /app/dist/secrets | ||
RUN ./node_modules/.bin/ncc build src/feature-env.ts -o /app/dist/feature-env && \ | ||
./node_modules/.bin/ncc build src/secrets.ts -o /app/dist/secrets | ||
|
||
FROM runner | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/dist/ /app | ||
COPY infra/scripts/container-scripts/* ./app/ | ||
COPY infra/scripts/update-package-json.ts ./app/ | ||
WORKDIR /app | ||
COPY infra/scripts/container-scripts/* /app/ | ||
COPY infra/scripts/update-package-json.ts /app/ | ||
|
||
ENTRYPOINT [ "node", "feature-env" ] |
Oops, something went wrong.