This commit is contained in:
Fran Jurmanović
2023-10-02 21:33:08 +02:00
parent c2ab9c9ba8
commit 9a9a4f2ced
7 changed files with 50 additions and 2188 deletions

View File

@@ -1,5 +1,5 @@
# Use Node 16 alpine as parent image
FROM node:16-alpine
# Use oven/bun as parent image
FROM oven/bun:latest
# Change the working directory on the Docker image to /app
WORKDIR /app
@@ -8,11 +8,10 @@ WORKDIR /app
COPY . .
# Install dependencies
RUN npm install
RUN npm run build
RUN bun install
# Expose application port
# EXPOSE 3000
EXPOSE 3000
# Start the application
CMD npm start
CMD bun start