mirror of
https://github.com/docker/getting-started-app.git
synced 2025-07-12 05:52:26 -04:00
docker changes
This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -1,6 +1,16 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy application code to the container
|
||||
COPY . .
|
||||
|
||||
# Install dependencies
|
||||
RUN yarn install --production
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 3000
|
||||
|
||||
# Command to run the application
|
||||
CMD ["node", "src/index.js"]
|
||||
EXPOSE 3000
|
||||
|
Reference in New Issue
Block a user