Files
superset2/superset-websocket/Dockerfile
Đỗ Trọng Hải 39ebf7a7ad chore(websocket): sync Node version to LTS v22 (#37102)
Signed-off-by: hainenber <dotronghai96@gmail.com>
Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com>
2026-01-23 12:59:19 -08:00

40 lines
1.1 KiB
Docker

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM node:22-alpine AS build
WORKDIR /home/superset-websocket
COPY . ./
RUN npm ci && \
npm run build
FROM node:22-alpine
ENV NODE_ENV=production
WORKDIR /home/superset-websocket
COPY --from=build /home/superset-websocket/dist ./dist
COPY package*.json ./
# Only install production dependencies
RUN npm ci --omit=dev
# Don't run as root!
USER node
CMD [ "npm", "start" ]