Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: <<EOF incompatibility on windows #448

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all 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
27 changes: 11 additions & 16 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ LABEL maintainer="Borja Paz Rodríguez <[email protected]>" \

ARG WAIT_VERSION=2.12.1

RUN <<EOF
set -ex
apk update
apk upgrade
apk add --no-cache openssl
rm -rf /var/cache/apk/*
EOF
RUN set -ex
RUN apk update
RUN apk upgrade
RUN apk add --no-cache openssl
RUN rm -rf /var/cache/apk/*

RUN <<EOF
npm install -g pm2
Expand All @@ -43,18 +41,15 @@ FROM base as builder

COPY --link package*.json ./

RUN <<EOF
npm ci --omit=optional
npm cache clean --force
EOF
RUN npm ci --omit=optional
RUN npm cache clean --force


COPY --link . .

RUN <<EOF
npm run prisma:generate
npm run build
npm prune --omit=dev
EOF
RUN npm run prisma:generate
RUN npm run build
RUN npm prune --omit=dev


FROM base as runtime
Expand Down