Added Docker
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,12 +1,12 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache git bash
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
|
||||
COPY entrypoint.sh /usr/src/app/entrypoint.sh
|
||||
RUN chmod +x /usr/src/app/entrypoint.sh
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
||||
EXPOSE 1337
|
||||
Reference in New Issue
Block a user