Last active
December 17, 2021 14:23
-
-
Save sibelius/2c88739a36b56a031b35a981cfce82df to your computer and use it in GitHub Desktop.
simple dockerfile using a single .js file generated by webpack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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