FROM alpine:latest
RUN apk add docker
RUN apk add --update nodejs npm
# create a sharedfolder for the dockercontainers with read write all
RUN mkdir -p /app/temp
RUN mkdir -p /app/uploads
RUN chmod 777 /app/temp
RUN chmod 777 /app/uploads
# Step 2 (BUILD): set the work directory (where you run all your orders and where you copy all your files)
WORKDIR /app
# Step 3 (BUILD): Copy package.json to work directory
COPY package.json .
# Step 4 (BUILD): Install package.json
# -> with proxy
RUN npm --proxy http://proxy.de-consult.de:8080 install
# -> without proxy:
#RUN npm install
# Step 5 (BUILD): Copy all needed files from our current directory to work directory
COPY app.js .
COPY converterWorker.js .
# Step 6 (RUN): Tell container what command to run first -> node index.js
CMD ["node", "app.js"]
When I run the converter on a docker with the latest alpine as baseImage, I get this error
[XKTModel.finalize] Failed to encode image: TypeError: BasisEncoderModule is not a function
I tried with DamagedHelmet.glb
my dockerfile
my package.json
the command I run
and the log
gtlf files are working fine