Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Clean install ignored in base file #972

Closed
cm226 opened this issue Aug 15, 2022 · 1 comment
Closed

Clean install ignored in base file #972

cm226 opened this issue Aug 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@cm226
Copy link

cm226 commented Aug 15, 2022

Describe the bug
If I use
RUN npm ci
in the base docker file, the generated docker file for the base image contains
RUN npm install

To Reproduce
Create a base dockerfile with
FROM node:16-alpine3.15 as base
WORKDIR /app
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm ci

Expected behavior
The generated docker file looks like

FROM node:16-alpine3.15 as base
WORKDIR /app
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm ci

Additional context
This is a problem because the install is overwriting the package-lock.json in side the docker image. Dosnt seem to happen in the template docker files only when used in the base. Im using V1.0.1

@cm226 cm226 added the bug Something isn't working label Aug 15, 2022
@rudxde
Copy link
Owner

rudxde commented Aug 25, 2022

Hi, can you check if the issue is resolved in the build version 1.0.3-build.01ca83c.0?

@rudxde rudxde closed this as completed Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants