Is there a good Docker Image setup for Prisma that...
# orm-help
p
Is there a good Docker Image setup for Prisma that's maintained by the team or those close? I'm using MySql and SqlServer and I'm struggling with combining Apollo Server and Prisma in one Image. Maybe Vanilla and Vanilla is better then the Swirl. Thinking maybe I should make GraphQL one image and Prisma it's own.
e
What problems are you seeing 🙂 ? Do you roughly have Dockerfile / docker-compose we can talk through? For me, it was straightforward to set up a GraphQL Server + Prisma in one Docker image - but your requirements could be different so keen to chat
p
Finally got it working. Anyone searches this, here is the Dockerfile I created. Something like this should really be in the Prisma docs.
Copy code
#FROM node:alpine

# <https://github.com/hirosystems/explorer/pull/582/commits/045e01f9405d5073a914f53e796dcb0bf66c39e2>
FROM node:alpine AS deps

# Create app directory
RUN mkdir -p /usr/src
WORKDIR /usr/src

# Install app dependencies
COPY package.json /usr/src/
COPY package-lock.json /usr/src/


# Bundle app source
COPY . /usr/src

RUN npm install
RUN npx prisma generate
RUN npm run build

EXPOSE 4000
CMD ["npm", "start"]
❤️ 1