17 lines
306 B
Docker
17 lines
306 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y python3 python3-pip
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
RUN npm config set python /usr/bin/python
|
|
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
|
|
RUN chown -R node:node /app/src/data
|
|
USER node
|
|
|
|
CMD ["npm", "run", "start"]
|