This commit is contained in:
13
Dockerfile.api
Normal file
13
Dockerfile.api
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --include=dev
|
||||
|
||||
COPY server ./server
|
||||
COPY constants.ts types.ts ./
|
||||
|
||||
ENV APP_ENV=production
|
||||
EXPOSE 3001
|
||||
|
||||
CMD ["sh", "-c", "npm run db:migrate && npm run start:api"]
|
||||
Reference in New Issue
Block a user