Files
caprover/dockerfile-captain.edge
T
TheSpiritMan 349681bc90 mod: Dockerfile for edge and release
mod: dockerignore
2024-02-22 20:11:09 +05:45

21 lines
463 B
Plaintext

FROM node:18-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"]