Fix DockerFile Warnings and remove Cache stuff

This commit is contained in:
Matt DiMeglio 2026-01-19 16:56:52 -05:00
parent c5408599ba
commit 3c401b4ce0
2 changed files with 5 additions and 7 deletions

View file

@ -4,12 +4,11 @@ WORKDIR /app
COPY ./package*.json ./
RUN npm cache clean --force \
&& npm ci --no-audit --no-fund
RUN npm ci --no-audit --no-fund
COPY . ./
EXPOSE 5172
EXPOSE 5170
CMD npm run dev
CMD ["npm", "run", "dev"]

View file

@ -4,8 +4,7 @@ WORKDIR /app
COPY ./package*.json ./
RUN npm cache clean --force \
&& npm ci --no-audit --no-fund
RUN npm ci --no-audit --no-fund
COPY . ./
@ -13,6 +12,6 @@ EXPOSE 5173
EXPOSE 5171
ARG ENVIRONMENT
ENV ENVIRONMENT ${ENVIRONMENT}
ENV ENVIRONMENT=${ENVIRONMENT}
CMD npm run ${ENVIRONMENT}
CMD ["npm", "run", "${ENVIRONMENT}"]