7eac8e7a35
* v2.2.4 (#810) * feat: handle URLs with or without trailing slash (#803) * feat: handle URLs with or without trailing slash * tidy: cleanup slashes * Fix docker build (#805) * fix: fixed the docker build * tidy: cleanup * env: remove env contents (#808) * Portfolio fix (#809) * fix: fixed the portfolio account detail page layout * fix: fixed portfolio cards * tidy: refactor * align buttons, perps row clickable (#807) * align buttons, perps row clickable * fix comments * update to v2.2.4 * fix borrowbutton logic, add vault deposit manage btn, fix icon size vault modal --------- Co-authored-by: Linkie Link <linkielink.dev@gmail.com> --------- Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com> * Update Dockerfile * remove .env files * tidy: format --------- Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
FROM node:20-alpine as builder
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install
|
|
COPY . .
|
|
RUN apk --update add 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
|
|
|
|
FROM node:20-alpine as runner
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/package.json .
|
|
COPY --from=builder /app/yarn.lock .
|
|
COPY --from=builder /app/next.config.js .
|
|
COPY --from=builder /app/public ./public
|
|
COPY --from=builder /app/.next/standalone ./
|
|
COPY --from=builder /app/.next/static ./.next/static
|
|
COPY entrypoint.sh .
|
|
|
|
RUN apk add --no-cache --upgrade bash
|
|
RUN ["chmod", "+x", "./entrypoint.sh"]
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "server.js"]
|
|
|
|
# Labels
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md
|
|
LABEL org.opencontainers.image.title="mars-fe"
|
|
LABEL org.opencontainers.image.description="Mars Protocol Outpost Frontend"
|
|
LABEL org.opencontainers.image.authors="info@mars.foundation"
|
|
LABEL org.opencontainers.image.source=https://github.com/mars-protocol/mars-v2-frontend
|