Skip to content

Simplify Dockerfile #4

@extremelyonline

Description

@extremelyonline

Thank you for creating Offtiktok and dockerizing. I think the image size of the backend image can be reduced by using node:slim

# Use an official Node.js slim base image
FROM node:slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    openssl \
  && rm -rf /var/lib/apt/lists/*

Moreover, I was wondering if the .env file is really necessary? Can't the DATABASE_URL simply be written into the Dockerfile? Perhaps a standard DB name can be given.

FYI, both the frontend and backend image built fine on ARM64!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions