DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

[BUG] doppler (no such package) #421

Closed tekpriest closed 11 months ago

tekpriest commented 11 months ago

Describe the bug We get a doppler (no such package) when trying to build docker image

To Reproduce Steps to reproduce the behavior. Please include output from running the command with --debug. Create a Dockefile with

FROM node:18.10.0-alpine AS BUILD_IMAGE
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build

FROM node:18.10.0-alpine
WORKDIR /app
# copy from build image
COPY --from=BUILD_IMAGE /app/dist ./dist
COPY --from=BUILD_IMAGE /app/node_modules ./node_modules
COPY package.json ./
COPY package-lock.json ./
COPY *.env ./

RUN wget -q -t3 'https://packages.doppler.com/public/cli/rsa.8004D9FF50437357.key' -O /etc/apk/keys/cli@doppler-8004D9FF50437357.rsa.pub && \
  echo 'https://packages.doppler.com/public/cli/alpine/any-version/main' | tee -a /etc/apk/repositories && \
  apk add doppler

CMD ["doppler", "run", "--", "npm", "run", "start:prod"]

Expected behavior Downloads doppler to the docker image

Screenshots image

Desktop (please complete the following information):

tekpriest commented 11 months ago

After multiple tries, it is now good