Cloudron-compatible packaging for the Notea app
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.
 
 

27 lines
742 B

FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92 as builder
WORKDIR /app/code
ARG NAME=main
RUN git clone https://github.com/QingWei-Li/notea.git --branch "$NAME" --single-branch . && \
yarn install --frozen-lockfile && \
yarn build && \
yarn install --production --frozen-lockfile
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
COPY --from=builder /app/code/public /app/code/public
COPY --from=builder /app/code/.next /app/code/.next
COPY --from=builder /app/code/node_modules /app/code/node_modules
COPY example.env.sh start.sh /app/code/
RUN chmod +x /app/code/start.sh
WORKDIR /app/code
EXPOSE 3000
CMD ["/app/code/start.sh"]