Skip to content

Commit

Permalink
Fix Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
izderadicka committed Sep 12, 2021
1 parent 8a4b17a commit c36ddaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "audioserve"
version = "0.15.6"
version = "0.15.6.1"
authors = ["Ivan <[email protected]>"]
edition = "2018"

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:edge AS build
FROM alpine:3.14 AS build
LABEL maintainer="Ivan <[email protected]>"

ARG CARGO_ARGS
Expand All @@ -20,15 +20,15 @@ RUN mkdir /ssl &&\
-subj "/C=CZ/ST=Prague/L=Prague/O=Ivan/CN=audioserve" &&\
openssl pkcs12 -inkey key.pem -in certificate.pem -export -passout pass:mypass -out audioserve.p12

FROM node:10-alpine as client
FROM node:12-alpine as client

COPY ./client /audioserve_client

RUN cd audioserve_client &&\
npm install &&\
npm run build

FROM alpine:edge
FROM alpine:3.14

VOLUME /audiobooks
COPY --from=build /audioserve/target/release/audioserve /audioserve/audioserve
Expand Down

0 comments on commit c36ddaa

Please sign in to comment.