mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
22 lines
464 B
Plaintext
22 lines
464 B
Plaintext
FROM node:22-alpine
|
|
RUN apk add --update --no-cache make gcc g++ git curl openssl openssh
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY . ./
|
|
|
|
|
|
# Build backend code
|
|
RUN npm ci && \
|
|
npm run build && \
|
|
npm ci --omit=dev && \
|
|
npm cache clean --force && \
|
|
mv ./edge-override.json ./config-override.json
|
|
|
|
# This quick hack invalidates the cache.
|
|
ADD https://www.google.com /time.now
|
|
|
|
ENV NODE_ENV production
|
|
ENV PORT 3000
|
|
EXPOSE 3000
|
|
|
|
CMD ["node" , "./built/server.js"] |