This commit is contained in:
parent
24d3070eef
commit
2912627cb6
1 changed files with 4 additions and 4 deletions
|
@ -1,16 +1,16 @@
|
||||||
FROM denoland/deno:latest
|
FROM node:latest
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the package.json and install dependencies
|
# Copy the package.json and install dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN deno i
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the application
|
# Copy the rest of the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Run build task
|
# Run build task
|
||||||
RUN deno task build
|
RUN npm run build
|
||||||
|
|
||||||
# Expose port 80 for the application
|
# Expose port 80 for the application
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
@ -20,4 +20,4 @@ ENV NITRO_PORT 3000
|
||||||
RUN ls -la .output/server/
|
RUN ls -la .output/server/
|
||||||
|
|
||||||
# Run the Deno server
|
# Run the Deno server
|
||||||
CMD deno run --allow-all .output/server/index.mjs
|
CMD node .output/server/index.mjs
|
||||||
|
|
Loading…
Add table
Reference in a new issue