Skip to content

Commit

Permalink
Merge pull request #58 from ScilifelabDataCentre/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
talavis authored Jul 2, 2023
2 parents 64bfeb6 + fc32092 commit 1301ded
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.11-alpine AS base

RUN apk update && apk upgrade && apk add build-base

LABEL org.opencontainers.image.description "Menu aggregator - backend (Fastapi instead of Flask)"
LABEL org.opencontainers.image.description "The backend part of the SciLifeLab lunch menu aggregator."

RUN mkdir /code
COPY ./backend/requirements.txt /code/
Expand Down Expand Up @@ -30,4 +30,4 @@ ARG version
ENV VERSION=$version
EXPOSE 8000

USER 10000
USER 10000
11 changes: 8 additions & 3 deletions Dockerfiles/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM node:18-alpine as base
FROM node:20-alpine as base

RUN yarn global add @quasar/cli

LABEL org.opencontainers.image.description "Menu aggregator - frontend"

COPY ./frontend/package.json /package.json
COPY ./frontend/yarn.lock /yarn.lock
WORKDIR /
Expand All @@ -22,9 +20,16 @@ RUN quasar build

FROM nginxinc/nginx-unprivileged:alpine as production

LABEL org.opencontainers.image.description "The frontend part of the SciLifeLab menu aggregator."

USER root
RUN apk update && apk upgrade

COPY --from=build /code/dist/spa/ /usr/share/nginx/html/
COPY ./Dockerfiles/nginx.conf /etc/nginx/conf.d/default.conf

USER nginx

EXPOSE 8080


Expand Down
3 changes: 2 additions & 1 deletion frontend/src/store/main/mutations.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export function updateRestaurants (state, payload) {
state.restaurants = payload;
if(typeof payload !== "undefined")
state.restaurants = payload;
}

export function updateRegion (state, payload) {
Expand Down

0 comments on commit 1301ded

Please sign in to comment.