2023-12-04 19:03:21 +03:00
|
|
|
FROM node:20
|
2021-08-29 00:28:46 +03:00
|
|
|
|
2023-05-10 20:16:13 +03:00
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
WORKDIR /app
|
2024-04-12 09:30:07 +03:00
|
|
|
RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd --unsafe-perm
|
2024-05-06 12:15:39 +03:00
|
|
|
RUN npm install --ignore-scripts=false --verbose uNetworking/uWebSockets.js#v20.43.0
|
2021-08-29 00:28:46 +03:00
|
|
|
|
2024-02-12 19:57:11 +03:00
|
|
|
COPY bundle/bundle.js ./
|
2024-05-06 12:15:39 +03:00
|
|
|
RUN mv node_modules/uWebSockets.js/*.node .
|
2021-08-29 00:28:46 +03:00
|
|
|
|
|
|
|
EXPOSE 8080
|
2024-05-06 12:15:39 +03:00
|
|
|
|
|
|
|
ENV UWS_HTTP_MAX_HEADERS_SIZE 32768
|
2023-05-10 20:16:13 +03:00
|
|
|
CMD [ "node", "./bundle.js" ]
|