Update Dockerfile

This commit is contained in:
Linkie Link 2024-02-14 16:53:17 +01:00 committed by GitHub
parent c08ee627fc
commit 953069b935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,18 +6,24 @@ RUN yarn install
COPY . . COPY . .
RUN apk --update add patch RUN apk --update add patch
RUN patch next.config.js next-config.patch RUN patch next.config.js next-config.patch
ENV NEXT_PUBLIC_NETWORK=mainnet
ENV NEXT_PUBLIC_OSMOSIS_RPC=APP_NEXT_OSMOSIS_RPC
ENV NEXT_PUBLIC_OSMOSIS_REST=APP_NEXT_OSMOSIS_REST
ENV NEXT_PUBLIC_WALLET_CONNECT_ID=APP_NEXT_WALLET_CONNECT_ID
ENV NODE_ENV=production
RUN yarn build RUN yarn build
FROM node:20-alpine as runner FROM node:20-alpine as runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/package.json . COPY --from=builder /app/package.json .
COPY --from=builder /app/yarn.lock . COPY --from=builder /app/yarn.lock .
COPY --from=builder /app/next.config.js . COPY --from=builder /app/next.config.js .
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/.next/static ./.next/static
COPY entrypoint.sh . COPY entrypoint.sh .
RUN apk add --no-cache --upgrade bash RUN apk add --no-cache --upgrade bash