757e364af0
Add .dockerignore to exclude node_modules, .git, coverage, .env. Update Dockerfile to install nodejs/npm, copy package.json, run npm install, and build. Update compose.prod.yml to set working_dir, restart no, and use array command. Move drizzle-kit from devDependencies to dependencies.
19 lines
254 B
Docker
19 lines
254 B
Docker
FROM denoland/deno:alpine
|
|
|
|
RUN apk add --no-cache nodejs npm
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
RUN npm install --omit=dev
|
|
|
|
COPY . .
|
|
RUN deno cache main.ts --allow-import
|
|
RUN deno task build
|
|
|
|
USER deno
|
|
EXPOSE 80
|
|
EXPOSE 443
|
|
|
|
CMD ["run", "-A", "main.ts"]
|