mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 22:43:30 +08:00
20 lines
417 B
Docker
20 lines
417 B
Docker
# This Dockerfile contains a docker container configuration
|
|
# for redstone cache layer express app connected to the Mongo DB
|
|
# Mongo DB connection url must be specified in .secrets.json file
|
|
|
|
FROM public.ecr.aws/lambda/nodejs:14
|
|
|
|
WORKDIR /var/task/
|
|
|
|
COPY package.json package.json
|
|
COPY yarn.lock yarn.lock
|
|
RUN npm i -g yarn
|
|
RUN yarn
|
|
|
|
COPY . .
|
|
|
|
ENV MODE=PROD
|
|
ENV ENABLE_AMPLITUDE_LOGGING=true
|
|
|
|
CMD [ "index.handler" ]
|