Skip to content

Commit

Permalink
GH-14 # Fix Docker warning on casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-C committed Aug 11, 2024
1 parent 8715e61 commit 17260de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.77-bullseye as build-stage
FROM rust:1.77-bullseye AS build-stage

ARG BUILD_TARGET="x86_64-unknown-linux-musl"
ARG BUILD_OPTIONS="--release --target $BUILD_TARGET"
Expand Down Expand Up @@ -26,7 +26,7 @@ COPY . /app/project/
# This is the actual build, touch the main.rs to have newer timestamp
RUN touch /app/project/src/main.rs && cargo build $BUILD_OPTIONS -Z unstable-options --out-dir /app/dist

FROM alpine:3 as production-stage
FROM alpine:3 AS production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist/jarm_online /app
COPY --from=build-stage /app/project/Rocket.toml /
Expand Down
4 changes: 2 additions & 2 deletions jarm_online_gui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Taken from https://cli.vuejs.org/guide/deployment.html#docker-nginx
FROM node:20 as build-stage
FROM node:20 AS build-stage
ARG VUE_APP_SENTRY_DSN
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:stable-alpine as production-stage
FROM nginx:stable-alpine AS production-stage
ARG VUE_APP_SENTRY_DSN
ENV VUE_APP_SENTRY_DSN=${VUE_APP_SENTRY_DSN}
RUN echo "Sentry dsn set to $VUE_APP_SENTRY_DSN"
Expand Down

0 comments on commit 17260de

Please sign in to comment.