🔧 WIP Dockerfile fixes

This commit is contained in:
2024-05-15 11:32:11 -05:00
parent f4563c12c6
commit 323548c0ff
3 changed files with 47 additions and 9 deletions

View File

@@ -42,6 +42,8 @@ RUN node -v && npm -v
COPY package.json package-lock.json ./
COPY moleculer.config.ts ./
COPY tsconfig.json ./
COPY scripts ./scripts
RUN chmod +x ./scripts/*
# Install application dependencies
RUN npm install
@@ -50,9 +52,8 @@ RUN npm install -g typescript ts-node
# Copy the rest of the application files
COPY . .
# Build and clean up
RUN npm run build \
&& npm prune
# clean up
RUN npm prune
# Expose the application's port
EXPOSE 3000