Skip to content

Commit

Permalink
Remove frontend build from dockerfile
Browse files Browse the repository at this point in the history
It's usually only used for the Springload docker-based deploy, so it's not
useful here
  • Loading branch information
haydngreatnews committed Jun 11, 2024
1 parent 51535d1 commit d922caf
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions docker/application/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,8 @@
# syntax=docker/dockerfile:1.4

## Frontend TODO once Springload approach added
# # frontend assets
# FROM node:20-alpine as frontend

# RUN apk add --update git

# WORKDIR /app

# # Install packages
# COPY package.json package-lock.json /app/
# RUN --mount=type=cache,target=/root/.npm NPM_CACHE_FOLDER=/root/.npm \
# npm ci

# # Copy config/build files
# COPY webpack.config.js webpack.fix-django-paths.js tsconfig.json /app/
# COPY core/static_src /app/core/static_src
# COPY core/templates_src /app/core/templates_src

# RUN npm run build

# CMD ["npm", "run build"]


## -----
# Base backend
# On Debian, as their prod is Ubuntu
# On Debian, as prod is Ubuntu
FROM --platform=linux/x86_64 python:3.11-slim-bullseye as base

ENV PROJECT cdh-web
Expand Down

0 comments on commit d922caf

Please sign in to comment.