feat: drizzle setup and docker setup
Signed-off-by: Varun Raj <mailme@varunraj.in>
This commit is contained in:
1 parent
29581e0bb3
commit
2c9a33e919
11 files changed
+118
-15
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
# Use an official Node.js runtime as the base image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
|
||||
# Copy the rest of the application code
|
||||
COPY . .
|
||||
|
||||
# Build the Next.js application
|
||||
RUN npm run build
|
||||
|
||||
# Expose the port that Next.js uses
|
||||
EXPOSE 3000
|
||||
|
||||
# Set the command to run the application
|
||||
CMD ["npm", "start"]
|
||||
Reference in new issue
Block a user