add dockerfile as an experiment
This commit is contained in:
parent
21916d266b
commit
2d7338a9db
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
dist/
|
||||
.git/
|
||||
*.example
|
||||
*.example.json
|
||||
*.bat
|
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /server
|
||||
|
||||
# Copy the package file over
|
||||
COPY package*.json ./
|
||||
|
||||
# tsconfig definitions
|
||||
COPY tsconfig*.json .
|
||||
|
||||
# Copy the entire app source tree
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
# ALLnet
|
||||
EXPOSE 80
|
||||
# Mucha
|
||||
EXPOSE 10082
|
||||
# Service
|
||||
EXPOSE 9002
|
||||
|
||||
# Compile protobuf definitions
|
||||
RUN npm run build_protos
|
||||
|
||||
# Compile the application source code
|
||||
RUN npx tsc
|
||||
|
||||
# Entrypoint
|
||||
CMD ["node", "dist"]
|
Loading…
Reference in New Issue
Block a user