Updated
This commit is contained in:
parent
bcb83dfea5
commit
4430d24a3e
14 changed files with 99 additions and 106 deletions
|
|
@ -1,17 +1,12 @@
|
|||
FROM denoland/deno:alpine AS build
|
||||
FROM oven/bun:canary-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json deno.lock ./
|
||||
RUN deno install && deno install --allow-scripts=npm:sharp,npm:@parcel/watcher
|
||||
COPY package*.json bun.lock ./
|
||||
RUN bun install && bun pm trust --all
|
||||
COPY . .
|
||||
ENV NODE_ENV=production
|
||||
RUN deno task build
|
||||
RUN bun run build
|
||||
|
||||
# FROM nginx:alpine AS runtime
|
||||
# COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
# COPY --from=build /app/.output/public /usr/share/nginx/html
|
||||
# EXPOSE 8080
|
||||
|
||||
FROM denoland/deno:alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
CMD ["deno", "run", "--allow-env", "--allow-net", "--allow-read", ".output/server/index.mjs"]
|
||||
FROM nginx:alpine AS runtime
|
||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /app/.output/public /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue