Skip to content

Commit

Permalink
Upgrade versions in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bramhoven authored and andris9 committed Aug 3, 2023
1 parent 41b7b06 commit 2a94429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---
from alpine:3.9 as builder
from alpine:3.18 as builder

ARG UID=1000
ENV APP_PATH /app
Expand All @@ -10,17 +10,17 @@ RUN chown -R builder .

RUN apk add --no-cache nodejs
RUN apk add --no-cache openssl
RUN apk add --no-cache --virtual build-deps git python npm make g++
RUN apk add --no-cache --virtual build-deps git python3 npm make g++

USER builder
RUN npm install && npm run bowerdeps

# ---
from alpine:3.9 as app
from alpine:3.18 as app
RUN apk add --no-cache nodejs
ENV APP_PATH /app
WORKDIR ${APP_PATH}
COPY --from=builder ${APP_PATH}/ ${APP_PATH}/
COPY --from=builder ${APP_PATH}/config/default.toml /etc/wildduck/www.toml
ENTRYPOINT ["node", "server.js"]
CMD ["--config=\"/etc/wildduck/www.toml\""]
CMD ["--config=/etc/wildduck/www.toml"]

0 comments on commit 2a94429

Please sign in to comment.