initial commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM node:18
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app/
|
||||
VOLUME /app/
|
||||
|
||||
RUN npm install -g npm@latest
|
||||
|
||||
COPY ./package.json ./
|
||||
RUN yarn
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV MONGODB_URL="mongodb://db:27017/pm25"
|
||||
ENV PORT=8081
|
||||
CMD DEBUG=pm25:* node main.js
|
||||
|
Reference in New Issue
Block a user