File size: 1,047 Bytes
cd3b919
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7007b84
cd3b919
 
 
 
 
 
 
d605f27
 
 
 
 
 
 
 
 
 
 
 
cd3b919
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:22.04

# Set noninteractive installation
ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies and curl
RUN apt-get update && apt-get install -y \
    curl \
    build-essential \
    libcairo2-dev \
    libpango1.0-dev \
    libjpeg-dev \
    libgif-dev \
    librsvg2-dev \
    python2 \
    fontconfig

# Download and install Node.js 12.13.0
RUN curl -fsSL https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz | tar -xJ -C /usr/local --strip-components=1

# Create app directory
WORKDIR /app

# Copy the entire project including node_modules
COPY . .

# Set all environment variables
ENV PORT=7860
ENV HOST=0.0.0.0
ENV LILYPOND_DATADIR=/app/node-addon-lilypond/output/share/lilypond/current/
ENV GUILE_LOAD_PATH=/app/node-addon-lilypond/output/share/guile/1.8
ENV LD_LIBRARY_PATH=/app/node-addon-lilypond/output
ENV LILYPOND_ADDON=/app/node-addon-lilypond/output/lilypond.node

ENV TEMP_DIR=./temp/
ENV LILYPOND_DIR=""
ENV MIDI_FILE_EXTEND=midi

# Expose port
EXPOSE 7860

# Start command
CMD ["npm", "start"]