package for cloudron
This commit is contained in:
23
Dockerfile.cloudron
Normal file
23
Dockerfile.cloudron
Normal file
@ -0,0 +1,23 @@
|
||||
FROM debian:stable-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y curl ca-certificates bash xz-utils && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG NODE_VERSION=20.12.2
|
||||
RUN curl -fsSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz \
|
||||
| tar -xJ -C /usr/local --strip-components=1
|
||||
|
||||
RUN mkdir -p /app/code /app/data
|
||||
|
||||
COPY ./ /app/code/
|
||||
COPY ./public/ /app/code/public/
|
||||
WORKDIR /app/code/
|
||||
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
VOLUME ["/app/data"]
|
||||
|
||||
COPY start.sh /app/code/
|
||||
RUN chmod +x /app/code/start.sh
|
||||
|
||||
CMD ["/app/code/start.sh"]
|
||||
|
Reference in New Issue
Block a user