Skip to content

Instantly share code, notes, and snippets.

@thimslugga
Created December 16, 2024 20:13
Show Gist options
  • Save thimslugga/f4e400b2beedc2ce8dcbbeb76b988329 to your computer and use it in GitHub Desktop.
Save thimslugga/f4e400b2beedc2ce8dcbbeb76b988329 to your computer and use it in GitHub Desktop.
Container Images
FROM --platform=$BUILDPLATFORM alpine:latest
WORKDIR /
RUN \
apk --no-cache add \
ca-certificates \
tzdata \
shadow \
su-exec
# Copy only the necessary files
COPY /root /
# Copy the entrypoint script
#COPY docker-entrypoint.sh /usr/local/bin/
#RUN chmod +x /usr/local/bin/docker-entrypoint.sh
#EXPOSE 3000
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["./myapp"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment