build: docker images (#2860)

This commit is contained in:
LongYinan
2023-06-27 17:23:19 +08:00
committed by GitHub
parent 05452bb297
commit dd58b1bbf6
13 changed files with 155 additions and 288 deletions

10
.github/deployment/node/Dockerfile vendored Normal file
View File

@@ -0,0 +1,10 @@
FROM node:18-bookworm-slim
COPY ./apps/server /app
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends openssl && \
rm -rf /var/lib/apt/lists/*
CMD ["node", "--es-module-specifier-resolution=node", "./dist/index.js"]