$ git clone git@github.com:berkeley-food-recommendations/data-gathering.git
You're cloning the main repository - be careful! We're going to enforce a "no committing to master directly" rule, so no committing directly to master, please.
# Dockerfile extending the generic Node image with application files for a | |
# single application. | |
FROM gcr.io/google_appengine/nodejs | |
ARG COMMIT=local | |
ARG TAG=local | |
# Check to see if the the version included in the base runtime satisfies | |
# '>=10.14', if not then do an npm install of the latest available | |
# version that satisfies it. | |
RUN /usr/local/bin/install_node '>=10.14' | |
COPY . /app/ |
const crypto = require("crypto") | |
// The `generateKeyPairSync` method accepts two arguments: | |
// 1. The type ok keys we want, which in this case is "rsa" | |
// 2. An object with the properties of the key | |
const { publicKey, privateKey } = crypto.generateKeyPairSync("rsa", { | |
// The standard secure default length for RSA keys is 2048 bits | |
modulusLength: 2048, | |
}) |