Compare commits
2 Commits
1412c6df36
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f573f1ae19 | |||
| b9a10aa50b |
+21
@@ -0,0 +1,21 @@
|
|||||||
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy package files
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install dependencies (including devDependencies for building and running drizzle)
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
# Copy the rest of the application files
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build the frontend and backend api
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Expose port
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# Start command
|
||||||
|
CMD ["sh", "-c", "npx drizzle-kit push && npm run start"]
|
||||||
Reference in New Issue
Block a user