Skip to content

Instantly share code, notes, and snippets.

@sibelius
Last active December 17, 2021 14:23
Show Gist options
  • Save sibelius/2c88739a36b56a031b35a981cfce82df to your computer and use it in GitHub Desktop.
Save sibelius/2c88739a36b56a031b35a981cfce82df to your computer and use it in GitHub Desktop.
simple dockerfile using a single .js file generated by webpack
FROM node:12.20.1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV GRAPHQL_PORT=5001
EXPOSE ${GRAPHQL_PORT}
COPY ./build/graphql.js /usr/src/app/
CMD ["node", "graphql.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment