3006dbbb21
* fix: fixed transaction messages (#792) * Open Source + Docker image (#793) * feat: added dummy charting library * feat: added docker workflow * feat: remove tests and code-coverage * feat: added final TradingView fallback * env: set private to false * fix: added production env * env: added README and LICENSE * env: cleanup variables * env: add license field * env: finish docker setup * fix: updated the description of the dummy data * docker: update actions to node 20 (#796) * docker: added v2 prefix to tags * fix: Dockerfile update * fix: updated next-config.patch * docker: updated patch file
36 lines
1.0 KiB
Docker
36 lines
1.0 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
|
|
RUN yarn build
|
|
|
|
FROM node:20-alpine as runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
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
|