1 Commits

Author SHA1 Message Date
091d6c8d46 Added Dockerfile 2022-10-31 02:05:05 +03:00
9 changed files with 35248 additions and 10821 deletions

View File

@@ -1,5 +1,4 @@
NODE_ENV=production
PORT=3031
URI=mongodb://localhost?retryWrites=true&w=majority
FRONTEND=https://bingo.anatolykopyl.ru
DB_NAME=vk_bingo

View File

@@ -1,9 +1,11 @@
FROM node:20-alpine
LABEL authors="anatolykopyl"
FROM node:16-alpine
WORKDIR /app
WORKDIR /usr/node/app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Copy and download dependencies
COPY package.json package-lock.json ./
RUN npm install
# Copy the source files into the image
COPY . .
EXPOSE 3000
CMD npm start

View File

@@ -1,11 +0,0 @@
version: '3'
services:
flexpatrol-bingo:
image: git.radner.ru/anatolykopyl/flexpatrol-bingo:latest
container_name: flexpatrol-bingo
working_dir: /usr/node/app
ports:
- "3004:3000"
command: >
sh -c "node index.js"

View File

@@ -219,5 +219,10 @@ const client = new MongoClient(process.env.URI, { useUnifiedTopology: true });
}
});
app.listen(process.env.PORT, () => console.log(`Server started on ${process.env.PORT}`));
app.listen(
3000,
'0.0.0.0',
511,
() => console.log(`Server started on port ${3000}`),
);
})();

5192
backend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon index.js"
"dev": "nodemon index.js",
"start": "node index.js"
},
"author": "Anatoly Kopyl",
"license": "ISC",

File diff suppressed because it is too large Load Diff

30040
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff