2022-11-24 15:09:50 +01:00
|
|
|
FROM node:18-alpine
|
|
|
|
|
|
|
|
WORKDIR /server
|
|
|
|
|
|
|
|
# Copy the package file over
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
# tsconfig definitions
|
2022-11-24 15:10:55 +01:00
|
|
|
COPY tsconfig*.json ./
|
2022-11-24 15:09:50 +01:00
|
|
|
|
|
|
|
# Copy the entire app source tree
|
|
|
|
COPY . .
|
|
|
|
|
2022-11-24 15:23:26 +01:00
|
|
|
# Copy game configuration file
|
|
|
|
COPY config.json .
|
|
|
|
|
2022-11-24 15:09:50 +01:00
|
|
|
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"]
|