Skip to content

Commit

Permalink
Updates to dockerfile (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaddieZeigler authored and GitHub Enterprise committed Jul 29, 2024
1 parent 86e4d96 commit a8b4822
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,4 +1,4 @@
FROM rust:alpine3.20 as build
FROM rust:alpine as build

ENV RUSTFLAGS="-C target-feature=-crt-static"
ENV RUN_MODE="build"
Expand All @@ -20,7 +20,7 @@ ENV RUN_JOBS=false
ENV CORE_DB_CONNECTION_STRING=postgresql://postgres:root@postgres:5432/deep_lynx_dev

RUN apk update
RUN apk add build-base musl-dev openssl=3.3.1-r1 openssl-dev=3.3.1-r1
RUN apk add --no-cache build-base musl-dev openssl openssl-dev
RUN apk update add --update nodejs=21.7.3
RUN apk add --update npm
RUN npm config set strict-ssl false
Expand All @@ -44,10 +44,10 @@ WORKDIR /srv/deeplynx/server
RUN yarn install;
RUN yarn run build;

FROM node:alpine3.20 as production
FROM node:alpine as production
ENV DEVELOPMENT_MODE=false

RUN apk update && apk add supervisor openssl=3.3.1-r1
RUN apk update && apk add --no-cache supervisor openssl
RUN mkdir -p /srv/deeplynx/server

# need pm2 to run legacy server
Expand Down

0 comments on commit a8b4822

Please sign in to comment.