docker
This commit is contained in:
1 parent
9bce91c20d
commit
3a1fb61847
3 files changed
+19
-3
No files matched your search
+7
-1
@@ -7,8 +7,14 @@ RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Serve
|
||||
# Run stage
|
||||
FROM nginx:1.27.1-alpine
|
||||
|
||||
# Environment variables
|
||||
COPY --from=build /app/env.sh /docker-entrypoint.d/env.sh
|
||||
RUN chmod +x /docker-entrypoint.d/env.sh
|
||||
|
||||
# Serve
|
||||
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
|
||||
Reference in new issue
Block a user