Skip to content

Commit

Permalink
Change Dockerfile to support TS
Browse files Browse the repository at this point in the history
  • Loading branch information
yash22arora committed May 24, 2024
1 parent 643389c commit 9abb667
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ WORKDIR /server
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

# Install TypeScript globally
RUN npm install -g typescript

# RUN npm install
# If you are building your code for production
RUN npm ci --omit=dev
# Bundle app source
COPY . .

# Expose the port the app runs on
EXPOSE 5000
CMD [ "node", "server.js" ]

# Serve the app
CMD [ "node", "dist/server.js" ]

0 comments on commit 9abb667

Please sign in to comment.