Compare commits
No commits in common. "feature/fix_run_buil_backend_docker" and "main" have entirely different histories.
feature/fi
...
main
@ -3,25 +3,14 @@ FROM node:18-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Install TypeScript as a dev dependency (if not already installed)
|
|
||||||
RUN npm install typescript --save-dev
|
|
||||||
|
|
||||||
# Copy all application files
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Run TypeScript compiler using npx
|
RUN npm run build
|
||||||
RUN npx tsc --pretty
|
|
||||||
|
|
||||||
# Verify the output directory
|
|
||||||
RUN ls -la dist || echo "No dist folder found"
|
|
||||||
|
|
||||||
# Expose the application port
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
Loading…
x
Reference in New Issue
Block a user