Last active
January 17, 2021 13:43
-
-
Save xShirase/b1838bbf66e5c4012460155d1321922e to your computer and use it in GitHub Desktop.
func
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
# App setup | |
RUN mkdir -p ${FUNCTION_DIR} | |
COPY function/package.json ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR} | |
# Install deps | |
RUN yarn | |
# Build app (do last for speed) | |
COPY function/. ${FUNCTION_DIR} | |
RUN yarn build | |
WORKDIR ${FUNCTION_DIR}/.build | |
CMD ["app.handler"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment