Vizzuality/landgriffon

View on GitHub
marketing/Dockerfile

Summary

Maintainability
Test Coverage
FROM node:16.19-bullseye
LABEL maintainer="hello@vizzuality.com"

ARG SENDGRID_API_KEY_SUBSCRIPTION
ARG SENDGRID_API_KEY_CONTACT
ARG NEXT_PUBLIC_GOOGLE_ANALYTICS

ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_GOOGLE_ANALYTICS $NEXT_PUBLIC_GOOGLE_ANALYTICS
ENV SENDGRID_API_KEY_SUBSCRIPTION $SENDGRID_API_KEY_SUBSCRIPTION
ENV SENDGRID_API_KEY_CONTACT $SENDGRID_API_KEY_CONTACT

RUN mkdir /opt/app

WORKDIR /opt/app

USER $USER

COPY .yarn ./.yarn
COPY src ./src
COPY public ./public
COPY package.json yarn.lock .yarnrc.yml ./

RUN yarn install --immutable

COPY next.config.js next-env.d.ts local.d.ts \
    postcss.config.js tailwind.config.js entrypoint.sh \
    tsconfig.json .browserlistrc .eslintrc.js .prettierrc.json ./

RUN yarn build

EXPOSE 3000
ENTRYPOINT ["./entrypoint.sh"]