🐳 Switched to an alpine base image
This commit is contained in:
28
Dockerfile
28
Dockerfile
@@ -1,26 +1,28 @@
|
|||||||
FROM node:buster-slim
|
FROM jeanblanchard/alpine-glibc
|
||||||
|
|
||||||
# Show all node logs
|
# Show all node logs
|
||||||
ENV NPM_CONFIG_LOGLEVEL warn
|
ENV NPM_CONFIG_LOGLEVEL warn
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
ENV CALIBRE_INSTALLER_SOURCE_CODE_URL https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py
|
||||||
WORKDIR /threetwo-import-service
|
WORKDIR /threetwo-import-service
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apk update && \
|
||||||
&& apt-get upgrade -y \
|
apk add --no-cache --upgrade \
|
||||||
&& apt-get install -y \
|
bash \
|
||||||
bash git openssh-server \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gcc \
|
gcc \
|
||||||
libgl1-mesa-glx \
|
dcron \
|
||||||
python3 python3-pip \
|
imagemagick \
|
||||||
qtbase5-dev \
|
mesa-gl \
|
||||||
|
python3 \
|
||||||
|
qt5-qtbase-x11 \
|
||||||
wget \
|
wget \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
xz-utils \
|
xvfb \
|
||||||
libvips-dev build-essential
|
xz && \
|
||||||
|
wget -O- ${CALIBRE_INSTALLER_SOURCE_CODE_URL} | python3 -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main(install_dir='/opt', isolated=True)" && \
|
||||||
RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=/opt isolated=y && \
|
|
||||||
rm -rf /tmp/calibre-installer-cache
|
rm -rf /tmp/calibre-installer-cache
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export default class ApiService extends Service {
|
|||||||
started(): any {
|
started(): any {
|
||||||
// Socket gateway-ish
|
// Socket gateway-ish
|
||||||
// Create a Socket.IO instance, passing it our server
|
// Create a Socket.IO instance, passing it our server
|
||||||
socketServer.listen(3001, "0.0.0.0");
|
socketServer.listen(3001, SOCKET_HOST);
|
||||||
this.io = new Server(socketServer, {});
|
this.io = new Server(socketServer, {});
|
||||||
|
|
||||||
// Add a connect listener
|
// Add a connect listener
|
||||||
|
|||||||
Reference in New Issue
Block a user