Dockerfile strapi v4 graphql build image

Hey guys,
I wanna build a Docker image for Strapi v4 that has graphql plugin built in.
Please any help?

Here’s my Dockerfile ( it’s not working ):

# BASE
ARG NODE_VERSION=14
FROM node:${NODE_VERSION}-alpine AS base-alpine
EXPOSE 1337

FROM base-alpine

ARG STRAPI_VERSION=latest

RUN yarn global add @strapi/strapi@${STRAPI_VERSION}
RUN yarn strapi install graphql

RUN mkdir -p /srv/app && chown 1000:1000 -R /srv/app

WORKDIR /srv/app

VOLUME /srv/app

COPY docker-entrypoint.sh /usr/local/bin/

RUN chmod 777 /usr/local/bin/docker-entrypoint.sh && ln -s /usr/local/bin/docker-entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["strapi"]

My docker-compose.yml

version: '3'
services:
  strapi-v4:
    image: graphql-strapi
    restart: always
    container_name: giab-strapi-prod
    ports:
      - '1337:1337'
    environment:
      NODE_ENV: production
      DATABASE_CLIENT: postgres
      DATABASE_HOST: postgres
      DATABASE_PORT: 5432
      DATABASE_NAME: postgres
      DATABASE_USERNAME: postgres
      DATABASE_PASSWORD: postgres
      DATABASE_SSL: 'false'
    volumes:
      - app:/srv/app
  postgres:
    restart: always
    image: postgres
    container_name: giab-postgres-prod
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    expose:
      - 5432
    volumes:
      - data:/var/lib/postgresql/data
volumes:
  data:
  app:

when I run the command sudo docker-compose up

Hi, i’ve also had an issue with sharp and added an install step for the sharp module in the Dockerfile

RUN npm install --ignore-scripts=false --verbose sharp
RUN npm install --platform=linux --arch=arm64v8 sharp

maybe this will help