Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
1 change: 1 addition & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Status
if: always()
run: |
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} ps
for BADSTATUS in stopped restarting; do
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} ps --services --filter status=${BADSTATUS} | tee -a /tmp/notgood
done
Expand Down
8 changes: 4 additions & 4 deletions anms.Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ENV NODE_OPTIONS=--use-openssl-ca
RUN --mount=type=cache,target=/var/cache/yum \
dnf install -y https://rpm.nodesource.com/pub_16.x/el/9/x86_64/nodesource-release-el9-1.noarch.rpm && \
dnf install -y nodejs && \
npm install --global yarn && \
npm install --ignore-scripts --global yarn && \
yarn config set --global cafile ${PIP_CERT}


Expand All @@ -112,14 +112,14 @@ COPY --chown=${APP_USER}:${APP_USER} \
anms-ui/server/package.json anms-ui/server/yarn.lock ${APP_WORK_DIR}/server/
RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
cd ${APP_WORK_DIR}/server && \
yarn install --immutable --immutable-cache
yarn install --ignore-scripts --immutable --immutable-cache

# Install NodeJS UI Dependencies
COPY --chown=${APP_USER}:${APP_USER} \
anms-ui/public/package.json anms-ui/public/yarn.lock ${APP_WORK_DIR}/public/
RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
cd ${APP_WORK_DIR}/public && \
yarn install --immutable --immutable-cache
yarn install --ignore-scripts --immutable --immutable-cache

# Build Backend/Frontend
# These copies do not overwrite node_modules
Expand All @@ -129,7 +129,7 @@ RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
cd ${APP_WORK_DIR}/public && \
yarn run build && \
rm -rf ${APP_WORK_DIR}/public/node_modules && \
yarn install --immutable --immutable-cache --production
yarn install --ignore-scripts --immutable --immutable-cache --production

COPY --chmod=755 anms-ui/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
ENTRYPOINT ["docker-entrypoint"]
Expand Down
Loading