mirror of
https://github.com/sergeyyarkov/modbus-logger.git
synced 2026-10-11 10:28:51 +03:00
added docker
This commit is contained in:
parent
b10886c0a7
commit
b9b3d710d8
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
node_modules
|
||||
.vscode
|
||||
.git
|
||||
7
compose.yml
Normal file
7
compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
server:
|
||||
container_name: mblogger-server
|
||||
restart: always
|
||||
build: .
|
||||
ports:
|
||||
- 9954:3000
|
||||
@ -1,5 +1,5 @@
|
||||
import 'dotenv/config';
|
||||
import "dotenv/config";
|
||||
|
||||
export default {
|
||||
SERVER_PORT: Number.parseInt(process.env?.SERVER_PORT, 10) || 3000,
|
||||
SERVER_PORT: 3000,
|
||||
};
|
||||
|
||||
8
dockerfile
Normal file
8
dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json .
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
CMD [ "node", "server.js" ]
|
||||
2495
package-lock.json
generated
2495
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user