Created
June 15, 2022 06:08
-
-
Save reikje/2e1650108a89ecbe1b4abeef851b8f81 to your computer and use it in GitHub Desktop.
openscad previewer
This file contains hidden or 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 ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV DISPLAY :99 | |
ENV STAGE=dev | |
ENV REGION=us-east-1 | |
ENV BUCKET_NAME=bucket | |
RUN apt-get update | |
RUN apt-get upgrade --yes | |
RUN apt-get install -y \ | |
autoconf \ | |
cmake \ | |
curl \ | |
g++ \ | |
openscad \ | |
libcurl4-openssl-dev \ | |
libtool \ | |
make \ | |
xvfb \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash | |
RUN apt-get install nodejs --yes | |
COPY package.json tsconfig.json tsconfig.paths.json esbuild.config.js ./ | |
RUN npm install -g aws-lambda-ric | |
RUN npm install | |
COPY src/ ./src/ | |
RUN node ./esbuild.config.js | |
RUN cp ./dist/handler.js ./handler.js | |
RUN rm -rf package.json tsconfig.json tsconfig.paths.json esbuild.config.js | |
# Downloads the Lambda Runtime Interface Emulator (RIE) | |
ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/bin/aws-lambda-rie | |
RUN chmod +x /usr/bin/aws-lambda-rie | |
COPY entry.sh ./ | |
RUN chmod +x ./entry.sh | |
ENTRYPOINT ["./entry.sh"] | |
CMD ["handler.main"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment