[BUG] doppler (no such package)
tekpriest opened this issue · 1 comments
tekpriest commented
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
Desktop (please complete the following information):
- OS: Node Alpine
- Version node:18.10.0-alpine
tekpriest commented
After multiple tries, it is now good