Add Dockerfile

This commit is contained in:
Wietse Wind
2023-10-07 01:40:19 +02:00
parent f92afc331c
commit a295844656
5 changed files with 32 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM node:20-alpine
WORKDIR /usr/src/app
VOLUME /usr/src/app/store
COPY package*.json ./
RUN apk add --no-cache --virtual .gyp \
py3-pip \
build-base \
make \
g++ \
&& mkdir store && chmod 777 store && npm install \
&& apk del .gyp
COPY . .
EXPOSE 3000
CMD [ "node", "." ]