add dockerfile
Some checks reported warnings
Build AirSignal Docker image / build-docker (push) Has been cancelled
Some checks reported warnings
Build AirSignal Docker image / build-docker (push) Has been cancelled
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Using official node image as a parent image
|
||||||
|
FROM public.ecr.aws/docker/library/node:20-alpine3.18
|
||||||
|
|
||||||
|
# Create working directory
|
||||||
|
RUN mkdir /app
|
||||||
|
|
||||||
|
# Setting the working directory to /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the current directory contents into the container at /app
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
# Install AirSignal dependencies
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# AirSignal port
|
||||||
|
EXPOSE 12776
|
||||||
|
|
||||||
|
# Run AirSignal when the container launches
|
||||||
|
CMD ["node", "server.js"]
|
||||||
Reference in New Issue
Block a user