facilmap/Dockerfile

27 wiersze
461 B
Docker
Czysty Zwykły widok Historia

2021-03-25 20:03:39 +00:00
FROM node:15.12-alpine
2016-10-18 13:24:02 +00:00
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
2021-03-25 20:03:39 +00:00
CMD yarn run server
2016-10-18 13:24:02 +00:00
EXPOSE 8080
2021-03-25 20:03:39 +00:00
RUN apk add --no-cache yarn
2020-04-15 02:26:15 +00:00
RUN adduser -D -h /opt/facilmap -s /bin/sh facilmap
2016-12-27 15:13:32 +00:00
2017-02-26 21:00:13 +00:00
WORKDIR /opt/facilmap/server
2016-10-18 13:24:02 +00:00
2017-02-26 21:00:13 +00:00
COPY ./ ../
2016-10-18 13:24:02 +00:00
2017-02-26 21:00:34 +00:00
RUN chown -R facilmap:facilmap /opt/facilmap
2017-02-26 21:00:13 +00:00
USER facilmap
2021-03-25 20:03:39 +00:00
RUN cd .. && yarn install
RUN cd .. && yarn run build
2016-10-18 13:24:02 +00:00
USER root
RUN chown -R root:root /opt/facilmap && chown -R facilmap:facilmap /opt/facilmap/server/cache
2016-10-18 13:24:02 +00:00
2016-12-27 15:13:32 +00:00
USER facilmap