You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
331 B
16 lines
331 B
FROM node:14-alpine3.14
|
|
|
|
# sqlite have to build on arm
|
|
# TODO: use prebuilt sqlite for arm, because it is very very slow.
|
|
RUN apk add --no-cache make g++ python3
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
EXPOSE 3001
|
|
VOLUME ["/app/data"]
|
|
CMD ["npm", "run", "start-server"]
|