Skip to content

Instantly share code, notes, and snippets.

@w3cj
Created April 27, 2024 13:56
Show Gist options
  • Select an option

  • Save w3cj/8b510e32ab568697ecb9b28597896b84 to your computer and use it in GitHub Desktop.

Select an option

Save w3cj/8b510e32ab568697ecb9b28597896b84 to your computer and use it in GitHub Desktop.
FROM node
RUN mkdir ~/.ssh
RUN echo "-----BEGIN OPENSSH PRIVATE KEY-----\n\
your\n\
private\n\
key\n\
goes\n\
here\n\
-----END OPENSSH PRIVATE KEY-----" > ~/.ssh/id_ed25519
RUN chmod 600 ~/.ssh/id_ed25519
RUN ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
WORKDIR /app
RUN git clone git@github.com:w3cj/t3-example.git .
RUN npm install
RUN npx prisma db push
CMD npx prisma studio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment