2021-07-13 04:32:09 +01:00
|
|
|
FROM node:14-alpine3.14
|
|
|
|
|
|
|
|
# sqlite have to build on arm
|
2021-07-13 05:24:33 +01:00
|
|
|
# TODO: use prebuilt sqlite for arm, because it is very very slow.
|
2021-07-13 04:32:09 +01:00
|
|
|
RUN apk add --no-cache make g++ python3
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
2021-07-11 07:20:31 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
EXPOSE 3001
|
|
|
|
VOLUME ["/app/data"]
|
|
|
|
CMD ["npm", "run", "start-server"]
|