-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (29 loc) · 977 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<<<<<<< HEAD
# Start your image with a Node.js base image
FROM node:16-alpine
# Set the working directory inside the container
WORKDIR /Task-3 Event Management
# Copy package.json and package-lock.json first, then install dependencies
COPY server/package.json server/package-lock.json ./
RUN npm install
# Copy the rest of the application code
COPY server/ ./
# Expose the port your application runs on
EXPOSE 3000
# Start the application
CMD ["npm", "start"]
=======
# Start your image with a Node.js base image
FROM node:16-alpine
# Set the working directory inside the container
WORKDIR /Eventify
# Copy package.json and package-lock.json first, then install dependencies
COPY server/package.json server/package-lock.json ./
RUN npm install
# Copy the rest of the application code
COPY server/ ./
# Expose the port your application runs on
EXPOSE 9099
# Start the application
CMD ["npm", "start"]
>>>>>>> 1b49fffa14635dee7ce366e02760a1574df4ed98