Add Dockerfile

This commit is contained in:
alefvanoon 2022-07-06 14:30:13 +00:00 committed by GitHub
parent 33917c061e
commit d837c9ad66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:lts-bullseye
WORKDIR /app
RUN apt update -y && apt upgrade -y \
&& apt install -y --no-install-recommends git \
&& apt autoclean -y \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g pnpm \
&& git clone --depth=1 https://github.com/zyachel/libremdb.git . \
&& pnpm install
EXPOSE 3000
CMD ["pnpm", "start"]