v1.1.0 #7
+1
-5
@@ -17,9 +17,6 @@ RUN rm -rf /var/lib/apt/lists/*
|
|||||||
# Copy package.json
|
# Copy package.json
|
||||||
COPY ./src/package*.json ./
|
COPY ./src/package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm ci --unsafe-perm
|
|
||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY ./src ./
|
COPY ./src ./
|
||||||
|
|
||||||
@@ -36,8 +33,7 @@ COPY ./entrypoint.sh /app/docker-entrypoint.sh
|
|||||||
RUN chmod +x /app/docker-entrypoint.sh
|
RUN chmod +x /app/docker-entrypoint.sh
|
||||||
|
|
||||||
# Change line break
|
# Change line break
|
||||||
RUN sed -i 's/\r$//' /app/docker-entrypoint.sh \
|
RUN sed -i 's/\r$//' /app/docker-entrypoint.sh
|
||||||
&& find /app -type f -exec sed -i 's/\r$//' {} \;
|
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||||
@@ -8,6 +8,12 @@ if [ -z "$UWUZU_HOST" ] || [ -z "$UWUZU_TOKEN" ] ||
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm ci --unsafe-perm
|
||||||
|
|
||||||
|
# Change line break
|
||||||
|
find /app -type f -exec sed -i 's/\r$//' {} \;
|
||||||
|
|
||||||
# Create config.json
|
# Create config.json
|
||||||
cat <<EOF > /app/config.json
|
cat <<EOF > /app/config.json
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user