Ajouter 'cryptide_project/server/socket_io/Dockerfile'
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
69049b0e24
commit
5310c47344
@ -0,0 +1,20 @@
|
|||||||
|
# Use the official Node.js image
|
||||||
|
FROM node:14
|
||||||
|
|
||||||
|
# Set the working directory in the container
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Copy package.json and package-lock.json to the working directory
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Copy the rest of the application code
|
||||||
|
COPY ./server/socket_io/server.js .
|
||||||
|
|
||||||
|
# Expose the port that the application will run on
|
||||||
|
EXPOSE 3002
|
||||||
|
|
||||||
|
# Command to run the application
|
||||||
|
CMD ["node", "server.js"]
|
Loading…
Reference in new issue