This commit is contained in:
parent
2912627cb6
commit
d7ffefc4d4
1 changed files with 4 additions and 5 deletions
|
@ -1,23 +1,22 @@
|
||||||
FROM node:latest
|
FROM denoland/deno: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 npm install
|
RUN deno i
|
||||||
|
|
||||||
# Copy the rest of the application
|
# Copy the rest of the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Run build task
|
# Run build task
|
||||||
RUN npm run build
|
RUN deno task build
|
||||||
|
|
||||||
# Expose port 80 for the application
|
# Expose port 80 for the application
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENV NITRO_PORT 3000
|
|
||||||
|
|
||||||
# Verify the file exists and can be executed
|
# Verify the file exists and can be executed
|
||||||
RUN ls -la .output/server/
|
RUN ls -la .output/server/
|
||||||
|
|
||||||
# Run the Deno server
|
# Run the Deno server
|
||||||
CMD node .output/server/index.mjs
|
CMD deno run --allow-all .output/server/index.mjs
|
||||||
|
|
Loading…
Add table
Reference in a new issue