Browse Source

refactor(container): updated dockerfiles for deployments

- Removed the next/prod docker files as they don't get used in our deployment scheme
- Renamed the local dockerfile to Dockerfile so it's easily buidable for all deployments
master
vnugent 10 months ago
parent
commit
17c49a092b
No known key found for this signature in database
GPG Key ID: C282EAC569C07C91
  1. 0
      Dockerfile
  2. 15
      Dockerfile.next
  3. 15
      Dockerfile.prod

0
Dockerfile.local → Dockerfile

15
Dockerfile.next

@ -1,15 +0,0 @@ @@ -1,15 +0,0 @@
FROM denoland/deno:alpine AS build
WORKDIR /app/src
COPY . .
RUN deno install
RUN deno task build
FROM denoland/deno:alpine AS release
WORKDIR /app
COPY --from=build /app/src/build/ ./build/
COPY --from=build /app/src/import_map.json .
ENV ORIGIN=https://$HOST
EXPOSE 3000
CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--import-map=import_map.json", "./build/index.js" ]

15
Dockerfile.prod

@ -1,15 +0,0 @@ @@ -1,15 +0,0 @@
FROM denoland/deno:alpine AS build
WORKDIR /app/src
COPY . .
RUN deno install
RUN deno task build
FROM denoland/deno:alpine AS release
WORKDIR /app
COPY --from=build /app/src/build/ ./build/
COPY --from=build /app/src/import_map.json .
ENV ORIGIN=https://$HOST
EXPOSE 3000
CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--import-map=import_map.json", "./build/index.js" ]
Loading…
Cancel
Save